Core/PassiveAI: Fix an incorrect check that was inducing evade spam with critters. Closes #19998, for real this time.

(cherry picked from commit 0c476ff9e0)
This commit is contained in:
Treeston
2018-07-18 14:18:03 +02:00
committed by Shauren
parent af26380d9b
commit 3e22c70c27

View File

@@ -35,7 +35,7 @@ int32 NullCreatureAI::Permissible(Creature const* creature)
void PassiveAI::UpdateAI(uint32)
{
if (me->IsInCombat() && me->getAttackers().empty())
if (me->IsEngaged() && !me->IsInCombat())
EnterEvadeMode(EVADE_REASON_NO_HOSTILES);
}