mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Core/PassiveAI: Fix an incorrect check that was inducing evade spam with critters. Closes #19998, for real this time.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user