box flag checker

This commit is contained in:
2024-05-28 22:23:40 -05:00
parent ead86efcf6
commit 4089f72d8f
9 changed files with 11 additions and 11 deletions
@@ -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();