bugfix: bow restriction limited to attacker.

This commit is contained in:
2023-05-03 14:25:30 -04:00
parent 7dcefdf5d7
commit 033c008263
@@ -368,11 +368,11 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
return false; return false;
} }
//cannot place on grid until bane is live // Attackers cannot place on grid until bane is live
if(bane.getSiegePhase() != SiegePhase.WAR && if (bane.getSiegePhase() != SiegePhase.WAR &&
serverCity.isLocationOnCityGrid(buildingList.getLoc()) == true) 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 PlaceAssetMsg.sendPlaceAssetError(origin, 53, player.getName()); // Buildings of war cannot be placed around a city grid unless there is an active bane
return false; return false;
} }