Fixed potential endless quest loop with EVENT_COMBAT and WipeHateList().

This commit is contained in:
Trevius committed 2014-04-01 23:00:15 -05:00
1 parent 8866b3170e
commit bb541eeb60
2 files changed
+7 -1

No files matched your search

+6 -1
View File
@@ -2450,13 +2450,18 @@ bool Mob::RemoveFromHateList(Mob* mob)
return bFound;
}
void Mob::WipeHateList()
{
if(IsEngaged())
{
hate_list.Wipe();
AI_Event_NoLongerEngaged();
}
hate_list.Wipe();
else
{
hate_list.Wipe();
}
}
uint32 Mob::RandomTimer(int min,int max) {