From 1fc23beb78ec0a793d69be9f0686ff9b8feecea8 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Wed, 12 Aug 2015 23:36:59 -0400 Subject: [PATCH] Clear auto XTargets on WipeHateList --- zone/hate_list.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/hate_list.cpp b/zone/hate_list.cpp index 6d7d04496..0247b376a 100644 --- a/zone/hate_list.cpp +++ b/zone/hate_list.cpp @@ -67,8 +67,10 @@ void HateList::WipeHateList() { parse->EventNPC(EVENT_HATE_LIST, hate_owner->CastToNPC(), m, "0", 0); - if (m->IsClient()) + if (m->IsClient()) { m->CastToClient()->DecrementAggroCount(); + m->CastToClient()->RemoveXTarget(hate_owner, true); + } } delete (*iterator); iterator = list.erase(iterator);