fix: check playerUiMapId for custom zones in arrow target selection
This commit is contained in:
@@ -112,12 +112,24 @@ end
|
||||
function QuestiePlayer:GetCurrentZoneId()
|
||||
local uiMapId = C_Map.GetBestMapForUnit("player")
|
||||
if uiMapId then
|
||||
return ZoneDB:GetAreaIdByUiMapId(uiMapId)
|
||||
local areaId = ZoneDB:GetAreaIdByUiMapId(uiMapId)
|
||||
if areaId then
|
||||
return areaId
|
||||
end
|
||||
return uiMapId
|
||||
end
|
||||
|
||||
return ZoneDB.instanceIdToUiMapId[select(8, GetInstanceInfo())]
|
||||
end
|
||||
|
||||
function QuestiePlayer:GetCurrentUiMapId()
|
||||
local uiMapId = C_Map.GetBestMapForUnit("player")
|
||||
if uiMapId then
|
||||
return uiMapId
|
||||
end
|
||||
return ZoneDB.instanceIdToUiMapId[select(8, GetInstanceInfo())]
|
||||
end
|
||||
|
||||
---@return number
|
||||
function QuestiePlayer:GetCurrentContinentId()
|
||||
local currentZoneId = QuestiePlayer:GetCurrentZoneId()
|
||||
|
||||
Reference in New Issue
Block a user