Browse Source

no more dead or self track

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
a5570e4bb5
  1. 2
      src/engine/gameManager/PowersManager.java

2
src/engine/gameManager/PowersManager.java

@ -1580,6 +1580,8 @@ public enum PowersManager { @@ -1580,6 +1580,8 @@ public enum PowersManager {
ArrayList<Guild> 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();

Loading…
Cancel
Save