From a5570e4bb5af79a777a258ae1af39d93e65989e1 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 11 May 2024 18:10:32 -0500 Subject: [PATCH] no more dead or self track --- src/engine/gameManager/PowersManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 137808d7..2ef7b390 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -1580,6 +1580,8 @@ public enum PowersManager { ArrayList nationsInRange = new ArrayList<>(); //first round to add players in range for(AbstractWorldObject trackChar : allInRange){ + if(trackChar.equals(playerCharacter) || !trackChar.isAlive() || !((PlayerCharacter)trackChar).isActive()) + continue; if(allInRange.contains(trackChar)) { trackChars.add((AbstractCharacter)trackChar); Guild nation = ((AbstractCharacter)trackChar).guild.getNation();