mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-15 13:35:08 +00:00
fix(Core/Movement): fix creature freeze when switching chase targets (#25058)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: sogladev <sogladev@gmail.com> Co-authored-by: Treeston <treeston.mmoc@gmail.com>
This commit is contained in:
@@ -73,7 +73,7 @@ void ChaseMovementGenerator<T>::SetOffsetAndAngle(std::optional<ChaseRange> dist
|
||||
template<class T>
|
||||
void ChaseMovementGenerator<T>::SetNewTarget(Unit* target)
|
||||
{
|
||||
i_target.link(target, this);
|
||||
SetTarget(target);
|
||||
_lastTargetPosition.reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user