From a16289d51e7950e65506bcec30b10a7ab3aa20f6 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Fri, 6 Jan 2023 16:24:37 -0500 Subject: [PATCH] Core/Maps: Implemented WMOAreaTable -1 grouipid fallback Port From (https://github.com/TrinityCore/TrinityCore/commit/dc07faf8f4d3c648114dd370463c599a2f949c20) --- Source/Game/Maps/TerrainManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Maps/TerrainManager.cs b/Source/Game/Maps/TerrainManager.cs index 449190f46..9b20f44cc 100644 --- a/Source/Game/Maps/TerrainManager.cs +++ b/Source/Game/Maps/TerrainManager.cs @@ -468,6 +468,9 @@ namespace Game.Maps data.areaInfo = new(wmoData.areaInfo.Value.AdtId, wmoData.areaInfo.Value.RootId, wmoData.areaInfo.Value.GroupId, wmoData.areaInfo.Value.MogpFlags); // wmo found var wmoEntry = Global.DB2Mgr.GetWMOAreaTable(wmoData.areaInfo.Value.RootId, wmoData.areaInfo.Value.AdtId, wmoData.areaInfo.Value.GroupId); + if (wmoEntry == null) + wmoEntry = Global.DB2Mgr.GetWMOAreaTable(wmoData.areaInfo.Value.RootId, wmoData.areaInfo.Value.AdtId, -1); + data.outdoors = (wmoData.areaInfo.Value.MogpFlags & 0x8) != 0; if (wmoEntry != null) {