mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-28 06:25:55 +00:00
fix(Core/Movement): Exclude Players and Player-controlled units from pet pathing cancellations (#24552)
This commit is contained in:
@@ -109,7 +109,8 @@ bool ChaseMovementGenerator<T>::DispatchSplineToPosition(T* owner, float x, floa
|
||||
bool pathFailed = !success || (pathType & PATHFIND_NOPATH);
|
||||
|
||||
// For pets, treat incomplete paths as failures to avoid clipping through geometry
|
||||
if (cOwner && (cOwner->IsPet() || cOwner->IsControlledByPlayer()))
|
||||
// Players and Player-controlled units have more erratic movement, skip failure
|
||||
if (cOwner && (cOwner->IsPet() || cOwner->IsControlledByPlayer()) && !i_target.getTarget()->IsCharmedOwnedByPlayerOrPlayer())
|
||||
if (pathType & PATHFIND_INCOMPLETE)
|
||||
pathFailed = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user