From 48e126823f9a5c2853c4814907fa9d39d3b19ced Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 Apr 2024 11:11:24 -0500 Subject: [PATCH] players dont show up on their own track dead or inactive players dont show up on track --- src/engine/gameManager/PowersManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index 5d27a91c..5f1fb37d 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -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);