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:
blinkysc 2026-03-25 19:20:09 -05:00 committed by GitHub
parent 3e0c360338
commit 35102dcfe9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}