fix: check QuestieCompat.UiMapData directly for custom zones in GetCurrentUiMapID

This commit is contained in:
Xurkon
2026-03-28 22:50:16 -05:00
parent 19f238aea2
commit 3af73e9b00
+8 -1
View File
@@ -234,7 +234,14 @@ function QuestieCompat.GetCurrentUiMapID()
if mapID == 0 then -- both the "Cosmic" and "Azeroth" maps return a mapID of 0
mapID = GetCurrentMapContinent()
end
return mapIdToUiMapId[mapID + GetCurrentMapDungeonLevel() / 10] or 946
local uiMapId = mapIdToUiMapId[mapID + GetCurrentMapDungeonLevel() / 10]
if uiMapId then
return uiMapId
end
if QuestieCompat.UiMapData and QuestieCompat.UiMapData[mapID] then
return mapID
end
return 946
end
-- maps mapAreaID to Zone and Continent index