Core/MMaps: Fix mobs evading when target is out of MMap meshes
Port From (https://github.com/TrinityCore/TrinityCore/commit/bea0e48531bae904079ea5b9f489a436e58abaed)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user