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

This commit is contained in:
Treeston
2018-07-18 14:18:03 +02:00
parent e114939071
commit 0c476ff9e0

View File

@@ -36,7 +36,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);
}