diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index ecb05f66..74cde7af 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -1318,10 +1318,18 @@ public enum CombatManager { //handle minion informing his captain of an attack - if (attackedMobile.agentType.equals(AIAgentType.GUARDMINION) && attackedMobile.guardCaptain != null && attackedMobile.guardCaptain.isAlive()) + if (attackedMobile.agentType.equals(AIAgentType.GUARDMINION) && attackedMobile.guardCaptain != null && attackedMobile.guardCaptain.isAlive()) { + if (attackedMobile.guardCaptain.combatTarget == null) attackedMobile.guardCaptain.setCombatTarget(attacker); + // Add to city outlaw list + + if (attacker.getObjectType().equals(GameObjectType.PlayerCharacter)) + attackedMobile.guardedCity.cityOutlaws.add(attacker.getObjectUUID()); + + } + // Mobile already has a target; don't switch. if (attackedMobile.getCombatTarget() != null && !attackedMobile.isSiege())