Browse Source

bugfix: bow restriction limited to attacker.

master
MagicBot 2 years ago
parent
commit
033c008263
  1. 8
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java

8
src/engine/net/client/handlers/PlaceAssetMsgHandler.java

@ -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;
} }

Loading…
Cancel
Save