Browse Source

group tele allowe don all city zones

lakebane-ai
FatBoy-DOTC 2 weeks ago
parent
commit
55923559cd
  1. 20
      src/engine/gameManager/PowersManager.java

20
src/engine/gameManager/PowersManager.java

@ -221,16 +221,16 @@ public enum PowersManager {
City city = ZoneManager.getCityAtLocation(playerCharacter.loc); City city = ZoneManager.getCityAtLocation(playerCharacter.loc);
if (city == null) { if (city == null) {
failed = true; failed = true;
}else{ }//else{
Bane bane = city.getBane(); // Bane bane = city.getBane();
if (bane == null) { // if (bane == null) {
failed = true; // failed = true;
}else{ // }else{
if(!bane.getSiegePhase().equals(SiegePhase.WAR)){ // if(!bane.getSiegePhase().equals(SiegePhase.WAR)){
failed = true; // failed = true;
} // }
} // }
} //}
if(failed){ if(failed){
//check to see if we are at an active mine //check to see if we are at an active mine
Zone zone = ZoneManager.findSmallestZone(playerCharacter.loc); Zone zone = ZoneManager.findSmallestZone(playerCharacter.loc);

Loading…
Cancel
Save