forked from MagicBane/Server
box flag checker
This commit is contained in:
@@ -85,7 +85,7 @@ import java.util.HashSet;
|
||||
}
|
||||
|
||||
private void RunBaneMechanic() {
|
||||
while (bane.getSiegePhase().equals(Enum.SiegePhase.WAR)) {
|
||||
while (bane != null && bane.getSiegePhase().equals(Enum.SiegePhase.WAR)) {
|
||||
HashSet<AbstractWorldObject> currentPlayers = WorldGrid.getObjectsInRangePartial(bane.getCity().loc, Enum.CityBoundsType.GRID.extents * 2.0f, MBServerStatics.MASK_PLAYER);
|
||||
Guild attacker = bane.getStone().getGuild().getNation();
|
||||
Guild defender = bane.getCity().getGuild().getNation();
|
||||
|
||||
Reference in New Issue
Block a user