|
|
|
@ -537,6 +537,15 @@ public class Building extends AbstractWorldObject {
@@ -537,6 +537,15 @@ public class Building extends AbstractWorldObject {
|
|
|
|
|
if (value < 0) |
|
|
|
|
Mine.SendMineAttackMessage(this); |
|
|
|
|
|
|
|
|
|
City playerCity = ZoneManager.getCityAtLocation(this.loc); |
|
|
|
|
if(playerCity != null){ |
|
|
|
|
if(this.getGuild().getNation().equals(playerCity.getTOL().getGuild().getNation())){ |
|
|
|
|
//friendly building has been attacked, add attacker to city outlaw list
|
|
|
|
|
if(!playerCity.cityOutlaws.contains(attacker.getObjectUUID())) |
|
|
|
|
playerCity.cityOutlaws.add(attacker.getObjectUUID()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return newHealth - oldHealth; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|