From c833f560c1f61a624bf7d1d47dd8dce8ae94bfc2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 29 Dec 2024 15:57:52 -0600 Subject: [PATCH] guard minion retaliation --- src/engine/gameManager/CombatManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 80e01442..bae8a273 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -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); + } + } + } } }