From c47d1b7823cb9d1df2dd6f593aee1280ff08a0a2 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 11:03:29 -0500 Subject: [PATCH] aggro check for non agressive mobs --- src/engine/ai/MobileFSM.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index 76e010f4..810ad1a6 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -486,7 +486,9 @@ public class MobileFSM { AttackTarget(mob, mob.getCombatTarget()); } private static void CheckToSendMobHome(Mob mob) { - CheckForAggro(mob); + if(mob.BehaviourType.isAgressive) { + CheckForAggro(mob); + } if(mob.getCombatTarget() != null && CombatUtilities.inRange2D(mob,mob.getCombatTarget(),MBServerStatics.AI_BASE_AGGRO_RANGE * 0.5f)){ return; }