Core/MMaps: handle PATHFIND_INCOMPLETE in ChaseMovementGenerator as "cannot reach the target"
Port From (https://github.com/TrinityCore/TrinityCore/commit/b4cff8159e19b1f71cd1e0aa1f9b8af351aaa3f5)
This commit is contained in:
@@ -168,8 +168,8 @@ namespace Game.Movement
|
||||
if (owner.IsHovering())
|
||||
owner.UpdateAllowedPositionZ(x, y, ref z);
|
||||
|
||||
bool success = _path.CalculatePath(x, y, z);
|
||||
if (!success || _path.GetPathType().HasFlag(PathType.NoPath))
|
||||
bool success = _path.CalculatePath(x, y, z, cOwner.CanFly());
|
||||
if (!success || _path.GetPathType().HasAnyFlag(PathType.NoPath | PathType.Incomplete))
|
||||
{
|
||||
if (cOwner)
|
||||
cOwner.SetCannotReachTarget(true);
|
||||
|
||||
Reference in New Issue
Block a user