|
|
|
@ -1578,6 +1578,14 @@ public enum PowersManager {
@@ -1578,6 +1578,14 @@ public enum PowersManager {
|
|
|
|
|
trackChars = new HashSet<>(); |
|
|
|
|
HashSet<AbstractWorldObject> allInRange = WorldGrid.getObjectsInRangePartial(playerCharacter.loc,MBServerStatics.CHARACTER_LOAD_RANGE,MBServerStatics.MASK_PLAYER); |
|
|
|
|
ArrayList<Guild> nationsInRange = new ArrayList<>(); |
|
|
|
|
ArrayList<AbstractWorldObject> 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()) |
|
|
|
|