fix(SmartAI): Ensure immediate combat engagement (#21854)

NPCs will stop their current waypoint and start combat.
This commit is contained in:
blinkysc
2025-04-26 13:24:35 -05:00
committed by GitHub
parent b8b5a4ea1c
commit d23e61b721

View File

@@ -848,6 +848,7 @@ void SmartAI::AttackStart(Unit* who)
{
me->GetMotionMaster()->MovementExpired();
me->StopMoving();
me->GetMotionMaster()->Clear(false);
}
me->GetMotionMaster()->MoveChase(who);