From e8b154b4e22d8925315fc71bbad8ab1c42123084 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Tue, 4 Jan 2022 18:49:06 -0500 Subject: [PATCH] Core/MMaps: Fix mobs evading when target is out of MMap meshes Port From (https://github.com/TrinityCore/TrinityCore/commit/bea0e48531bae904079ea5b9f489a436e58abaed) --- Source/Game/Movement/Generators/PathGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Game/Movement/Generators/PathGenerator.cs b/Source/Game/Movement/Generators/PathGenerator.cs index 0d54ba829..d846a8d78 100644 --- a/Source/Game/Movement/Generators/PathGenerator.cs +++ b/Source/Game/Movement/Generators/PathGenerator.cs @@ -709,7 +709,7 @@ namespace Game.Movement npolys = FixupCorridor(polys, npolys, 74, visited, nvisited); if (Detour.dtStatusFailed(_navMeshQuery.getPolyHeight(polys[0], result, ref result[1]))) - return Detour.DT_FAILURE; + Log.outDebug(LogFilter.Maps, $"Cannot find height at position X: {result[2]} Y: {result[0]} Z: {result[1]} for ");// {_sourceUnit.GetDebugInfo()}"); result[1] += 0.5f; Detour.dtVcopy(iterPos, result);