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

This commit is contained in:
Trevius
2014-04-01 23:00:15 -05:00
parent 8866b3170e
commit bb541eeb60
2 changed files with 7 additions and 1 deletions
+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) {