|
|
@ -231,6 +231,15 @@ public final class Bane { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(targetCity.getGuild().getNation().getSubGuildList() != null) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (Guild subGuild : targetCity.getGuild().getNation().getSubGuildList()) { |
|
|
|
|
|
|
|
if (getBaneByAttackerGuild(subGuild) != null) { |
|
|
|
|
|
|
|
PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(), 1, "This Nation Already Has a Bane Placed On It"); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
stone.addEffectBit((1 << 19)); |
|
|
|
stone.addEffectBit((1 << 19)); |
|
|
|
stone.setMaxHitPoints(stone.getBlueprint().getMaxHealth(stone.getRank())); |
|
|
|
stone.setMaxHitPoints(stone.getBlueprint().getMaxHealth(stone.getRank())); |
|
|
|
stone.setCurrentHitPoints(stone.getMaxHitPoints()); |
|
|
|
stone.setCurrentHitPoints(stone.getMaxHitPoints()); |
|
|
|