mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-30 08:23:51 +00:00
Clear auto XTargets on WipeHateList
This commit is contained in:
parent
f46b88bbde
commit
1fc23beb78
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user