|
|
|
@ -209,6 +209,22 @@ public final class Bane {
@@ -209,6 +209,22 @@ public final class Bane {
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(Guild subGuild : baningGuild.getNation().getSubGuildList()) { |
|
|
|
|
if (getBaneByAttackerGuild(subGuild) != null) { |
|
|
|
|
PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(), 1, "Your Nation Already Has a Bane Placed"); |
|
|
|
|
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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Blueprint blueprint = Blueprint.getBlueprint(24300); // Banestone
|
|
|
|
|
|
|
|
|
|
//Let's drop a banestone!
|
|
|
|
@ -225,21 +241,7 @@ public final class Bane {
@@ -225,21 +241,7 @@ public final class Bane {
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(Guild subGuild : baningGuild.getNation().getSubGuildList()) { |
|
|
|
|
if (getBaneByAttackerGuild(subGuild) != null) { |
|
|
|
|
PlaceAssetMsg.sendPlaceAssetError(player.getClientConnection(), 1, "Your Nation Already Has a Bane Placed"); |
|
|
|
|
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.setMaxHitPoints(stone.getBlueprint().getMaxHealth(stone.getRank())); |
|
|
|
|
stone.setCurrentHitPoints(stone.getMaxHitPoints()); |
|
|
|
|