players dont show up on their own track

dead or inactive players dont show up on track
This commit is contained in:
2024-04-28 11:11:24 -05:00
parent b3de192f0b
commit 48e126823f
@@ -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);