fix(Core/Movement): restore TimedFleeingMovementGenerator AttackStop (#24892)

Co-authored-by: megamage <none@none>
This commit is contained in:
sogladev
2026-03-03 02:07:42 +01:00
committed by GitHub
parent 0726ac1602
commit e471087652

View File

@@ -240,7 +240,13 @@ void TimedFleeingMovementGenerator::Finalize(Unit* owner)
if (Unit* victim = owner->GetVictim())
{
owner->SetTarget(victim->GetGUID());
if (owner->IsAlive())
{
owner->AttackStop();
if (Creature* ownerCreature = owner->ToCreature())
if (CreatureAI* AI = ownerCreature->AI())
AI->AttackStart(victim);
}
}
if (Creature* ownerCreature = owner->ToCreature())