fix(SmartAI): Ensure immediate combat engagement (#21854)
NPCs will stop their current waypoint and start combat.
This commit is contained in:
@@ -848,6 +848,7 @@ void SmartAI::AttackStart(Unit* who)
|
|||||||
{
|
{
|
||||||
me->GetMotionMaster()->MovementExpired();
|
me->GetMotionMaster()->MovementExpired();
|
||||||
me->StopMoving();
|
me->StopMoving();
|
||||||
|
me->GetMotionMaster()->Clear(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
me->GetMotionMaster()->MoveChase(who);
|
me->GetMotionMaster()->MoveChase(who);
|
||||||
|
|||||||
Reference in New Issue
Block a user