Core/SmartAI: SmartAI creatures no longer process health-based hooks after death.

This commit is contained in:
Treeston authored and Ovahlord committed 2020-07-22 19:21:21 +02:00
1 parent d2df9bdf15
commit f41cfa9185
2 files changed
+9 -2

No files matched your search

@@ -343,6 +343,13 @@ void SmartAI::UpdatePath(uint32 diff)
void SmartAI::UpdateAI(uint32 diff)
{
if (!me->IsAlive())
{
if (IsEngaged())
EngagementOver();
return;
}
CheckConditions(diff);
GetScript()->OnUpdate(diff);
UpdatePath(diff);