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:
hondacrx
2021-12-01 10:25:20 -05:00
parent 850bc4edc4
commit 4ec905e0dc
@@ -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);