From 29e8cdf6991e09de136d50fe4909056d485f7513 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 2 Sep 2023 19:23:33 -0500 Subject: [PATCH] attacking guard minion will no longer be ignored --- src/engine/objects/AbstractCharacter.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 84c5b784..604b112c 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -1121,7 +1121,14 @@ public abstract class AbstractCharacter extends AbstractWorldObject { } } } + //handle minion informing his captain of the attack + if(this.getObjectType().equals(GameObjectType.Mob) && ((Mob)this).agentType.equals(AIAgentType.GUARDMINION)) + if(((Mob)this).guardCaptain.combatTarget == null) + ((Mob)this).guardCaptain.combatTarget = value; + this.combatTarget = value; + + } public final ConcurrentHashMap getTimers() {