Browse Source

guard minion retaliation

lakebane2
FatBoy-DOTC 3 weeks ago
parent
commit
c833f560c1
  1. 7
      src/engine/gameManager/CombatManager.java

7
src/engine/gameManager/CombatManager.java

@ -1327,6 +1327,13 @@ public enum CombatManager { @@ -1327,6 +1327,13 @@ public enum CombatManager {
return;
retaliater.setCombatTarget(ac);
if(retaliater.isPlayerGuard && (retaliater.BehaviourType.equals(MobBehaviourType.GuardMinion) || retaliater.BehaviourType.equals(MobBehaviourType.GuardCaptain))){
for(Mob guard : retaliater.guardedCity.getParent().zoneMobSet){
if(guard.isPlayerGuard && guard.combatTarget == null){
guard.setCombatTarget(ac);
}
}
}
}
}

Loading…
Cancel
Save