From 033c008263422ae366d392356cc579beadd2bf8d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 3 May 2023 14:25:30 -0400 Subject: [PATCH] bugfix: bow restriction limited to attacker. --- src/engine/net/client/handlers/PlaceAssetMsgHandler.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java index abac1b38..18b8c835 100644 --- a/src/engine/net/client/handlers/PlaceAssetMsgHandler.java +++ b/src/engine/net/client/handlers/PlaceAssetMsgHandler.java @@ -368,11 +368,11 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { return false; } - //cannot place on grid until bane is live + // Attackers cannot place on grid until bane is live - if(bane.getSiegePhase() != SiegePhase.WAR && - serverCity.isLocationOnCityGrid(buildingList.getLoc()) == true) - { + if (bane.getSiegePhase() != SiegePhase.WAR && + player.getGuild().equals(serverCity.getBane().getOwner().getGuild()) && + serverCity.isLocationOnCityGrid(buildingList.getLoc())) { PlaceAssetMsg.sendPlaceAssetError(origin, 53, player.getName()); // Buildings of war cannot be placed around a city grid unless there is an active bane return false; }