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:
parent
3e0c360338
commit
35102dcfe9
1 changed files with 1 additions and 6 deletions
|
|
@ -259,12 +259,7 @@ bool ChaseMovementGenerator<T>::DoUpdate(T* owner, uint32 time_diff)
|
|||
owner->SetInFront(target);
|
||||
|
||||
if (cOwner)
|
||||
{
|
||||
if (cOwner->IsWithinMeleeRange(target))
|
||||
cOwner->SetCannotReachTarget();
|
||||
else
|
||||
cOwner->SetCannotReachTarget(target->GetGUID());
|
||||
}
|
||||
cOwner->SetCannotReachTarget();
|
||||
|
||||
MovementInform(owner);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue