forked from MagicBane/Server
players dont show up on their own track
dead or inactive players dont show up on track
This commit is contained in:
@@ -1582,6 +1582,10 @@ public enum PowersManager {
|
||||
}
|
||||
//second round add all others in window if they share a nation with a current
|
||||
for(AbstractWorldObject trackChar : allInRange) {
|
||||
|
||||
if(trackChar.equals(playerCharacter) || !trackChar.isAlive() || !((PlayerCharacter)trackChar).isActive())
|
||||
continue;
|
||||
|
||||
Guild nation = ((AbstractCharacter) trackChar).guild.getNation();
|
||||
if (allInRange.contains(trackChar) == true && nationsInRange.add(nation) == true && trackChars.contains(trackChar) == false)
|
||||
trackChars.add((AbstractCharacter) trackChar);
|
||||
|
||||
Reference in New Issue
Block a user