mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 17:48:20 +00:00
Clear auto XTargets on WipeHateList
This commit is contained in:
+3
-1
@@ -67,8 +67,10 @@ void HateList::WipeHateList()
|
|||||||
{
|
{
|
||||||
parse->EventNPC(EVENT_HATE_LIST, hate_owner->CastToNPC(), m, "0", 0);
|
parse->EventNPC(EVENT_HATE_LIST, hate_owner->CastToNPC(), m, "0", 0);
|
||||||
|
|
||||||
if (m->IsClient())
|
if (m->IsClient()) {
|
||||||
m->CastToClient()->DecrementAggroCount();
|
m->CastToClient()->DecrementAggroCount();
|
||||||
|
m->CastToClient()->RemoveXTarget(hate_owner, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
delete (*iterator);
|
delete (*iterator);
|
||||||
iterator = list.erase(iterator);
|
iterator = list.erase(iterator);
|
||||||
|
|||||||
Reference in New Issue
Block a user