mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-21 20:56:23 +00:00
fix(Core/Movement): Always stop moving on new chase movement generator init. (#9622)
Fixes #9421
This commit is contained in:
@@ -209,6 +209,7 @@ void ChaseMovementGenerator<Player>::DoInitialize(Player* owner)
|
||||
{
|
||||
i_path = nullptr;
|
||||
_lastTargetPosition.reset();
|
||||
owner->StopMoving();
|
||||
owner->AddUnitState(UNIT_STATE_CHASE);
|
||||
}
|
||||
|
||||
@@ -218,6 +219,7 @@ void ChaseMovementGenerator<Creature>::DoInitialize(Creature* owner)
|
||||
i_path = nullptr;
|
||||
_lastTargetPosition.reset();
|
||||
owner->SetWalk(false);
|
||||
owner->StopMoving();
|
||||
owner->AddUnitState(UNIT_STATE_CHASE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user