mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/Movement: Properly clear UNIT_STATE_MOVING when reaching chase target.
(cherry picked from commit 6ae887a5a9)
This commit is contained in:
@@ -216,6 +216,7 @@ bool TargetedMovementGeneratorMedium<T, D>::DoUpdate(T* owner, uint32 time_diff)
|
||||
template<class T>
|
||||
void ChaseMovementGenerator<T>::_reachTarget(T* owner)
|
||||
{
|
||||
_clearUnitStateMove(owner);
|
||||
if (owner->IsWithinMeleeRange(this->i_target.getTarget()))
|
||||
owner->Attack(this->i_target.getTarget(), true);
|
||||
if (owner->GetTypeId() == TYPEID_UNIT)
|
||||
|
||||
Reference in New Issue
Block a user