Browse Source

Excess whitespace.

master
MagicBot 2 years ago
parent
commit
45f94c736a
  1. 13
      src/engine/net/client/handlers/PlaceAssetMsgHandler.java

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

@ -398,8 +398,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -398,8 +398,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
HashSet<AbstractWorldObject> awoList = WorldGrid.getObjectsInRangePartial(serverCity, 1000, MBServerStatics.MASK_BUILDING);
for (AbstractWorldObject awo : awoList) {
Building building = (Building)awo;
@ -416,7 +414,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -416,7 +414,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
if (building.getGuild().isErrant())
continue;
if (!building.getGuild().equals(serverCity.getGuild()) && !building.getGuild().equals(serverCity.getBane().getOwner().getGuild()))
continue;
@ -430,7 +427,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -430,7 +427,6 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
if (building.getGuild().equals(serverCity.getBane().getOwner().getGuild()))
numAttackerBuildings++;
}
// Validate bane limits on siege assets
@ -441,13 +437,12 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -441,13 +437,12 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
return true;
}
if (serverCity.getBane() != null)
if ((player.getGuild().equals(serverCity.getGuild())) &&
(numDefenderBuildings >= serverCity.getTOL().getRank())) {
return true;
}
// passes validation: can assign auto-protection to war asset
if (serverCity.getBane() != null)
@ -455,15 +450,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler { @@ -455,15 +450,9 @@ public class PlaceAssetMsgHandler extends AbstractClientMsgHandler {
if (player.getGuild().equals(serverCity.getBane().getOwner().getGuild()))
return true;
siegeBuilding.setProtectionState(ProtectionState.PROTECTED);
// No bane placed. We're done!
return true;
}

Loading…
Cancel
Save