diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 2ef7b390..38afeb55 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -1578,6 +1578,14 @@ public enum PowersManager { trackChars = new HashSet<>(); HashSet allInRange = WorldGrid.getObjectsInRangePartial(playerCharacter.loc,MBServerStatics.CHARACTER_LOAD_RANGE,MBServerStatics.MASK_PLAYER); ArrayList nationsInRange = new ArrayList<>(); + ArrayList purgeList = new ArrayList<>(); + for(AbstractWorldObject trackChar : allInRange) { + if(trackChar.equals(playerCharacter) || !trackChar.isAlive() || !((PlayerCharacter)trackChar).isActive()) + purgeList.add(trackChar); + } + + allInRange.removeAll(purgeList); + //first round to add players in range for(AbstractWorldObject trackChar : allInRange){ if(trackChar.equals(playerCharacter) || !trackChar.isAlive() || !((PlayerCharacter)trackChar).isActive())