fix(Core/Movement): Clear CanNotReachTarget when chase spline finishes (#25235)
Co-authored-by: ccrs <ccrs@users.noreply.github.com> Co-authored-by: TrinityCore <TrinityCore@noreply.github.com>
This commit is contained in:
@@ -259,12 +259,7 @@ bool ChaseMovementGenerator<T>::DoUpdate(T* owner, uint32 time_diff)
|
|||||||
owner->SetInFront(target);
|
owner->SetInFront(target);
|
||||||
|
|
||||||
if (cOwner)
|
if (cOwner)
|
||||||
{
|
|
||||||
if (cOwner->IsWithinMeleeRange(target))
|
|
||||||
cOwner->SetCannotReachTarget();
|
cOwner->SetCannotReachTarget();
|
||||||
else
|
|
||||||
cOwner->SetCannotReachTarget(target->GetGUID());
|
|
||||||
}
|
|
||||||
|
|
||||||
MovementInform(owner);
|
MovementInform(owner);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user