fix(Core/SAI): Remove combat flag on evade for SAI-scripted charmed u… (#22775)

This commit is contained in:
Andrew 2025-09-02 20:15:40 -03:00 committed by GitHub
parent 4308fa20f2
commit f1cb5cc71b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -660,6 +660,7 @@ void SmartAI::EnterEvadeMode(EvadeReason /*why*/)
if (me->GetCharmerGUID().IsPlayer() || me->HasUnitFlag(UNIT_FLAG_POSSESSED))
{
me->AttackStop();
me->RemoveUnitFlag(UNIT_FLAG_IN_COMBAT);
return;
}