bugfix: bow restriction limited to attacker.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user