Browse Source

attacking guard minion will no longer be ignored

feature-workorder
FatBoy-DOTC 1 year ago
parent
commit
29e8cdf699
  1. 7
      src/engine/objects/AbstractCharacter.java

7
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; this.combatTarget = value;
} }
public final ConcurrentHashMap<String, JobContainer> getTimers() { public final ConcurrentHashMap<String, JobContainer> getTimers() {

Loading…
Cancel
Save