From b42a378ca83a214123b68301884e1ab992f6be54 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 28 May 2023 10:11:20 -0500 Subject: [PATCH] hate value reset when mob goes home --- src/engine/ai/MobileFSM.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/engine/ai/MobileFSM.java b/src/engine/ai/MobileFSM.java index b0a1c1c3..3d2c8484 100644 --- a/src/engine/ai/MobileFSM.java +++ b/src/engine/ai/MobileFSM.java @@ -505,6 +505,9 @@ public class MobileFSM { PowersBase recall = PowersManager.getPowerByToken(-1994153779); PowersManager.useMobPower(mob, mob, recall, 40); mob.setCombatTarget(null); + for (Entry playerEntry : mob.playerAgroMap.entrySet()) { + PlayerCharacter.getFromCache((int)playerEntry.getKey()).setHateValue(0); + } } } private static void chaseTarget(Mob mob) {