mirror of
https://gitcode.com/GitHub_Trending/az/azerothcore-wotlk.git
synced 2026-10-10 07:06:38 +08:00
fix(Core/Movement): Clear CanNotReachTarget when chase spline finishes (#25235)
Co-authored-by: ccrs <[email protected]> Co-authored-by: TrinityCore <[email protected]>
This commit is contained in:
co-authored by
ccrs
TrinityCore
parent
3e0c360338
commit
35102dcfe9
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user