From 59c976c073d0c3ddb21aaf017558918f626b5664 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 8 Aug 2023 11:45:42 -0500 Subject: [PATCH] guards use hate value --- src/engine/mobileAI/MobAI.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/mobileAI/MobAI.java b/src/engine/mobileAI/MobAI.java index 56259939..76c143d1 100644 --- a/src/engine/mobileAI/MobAI.java +++ b/src/engine/mobileAI/MobAI.java @@ -1058,7 +1058,10 @@ public class MobAI { try { if (mob.getCombatTarget() == null) CheckForPlayerGuardAggro(mob); + AbstractWorldObject newTarget = ChangeTargetFromHateValue(mob); + if (newTarget != null) + mob.setCombatTarget(newTarget); CheckMobMovement(mob); CheckForAttack(mob); } catch (Exception e) {