- Patch 8.0.1
This commit is contained in:
+7
-6
@@ -683,18 +683,19 @@
|
||||
}
|
||||
|
||||
function _detalhes:IsInCity()
|
||||
if (_detalhes.IsBFAClient) then
|
||||
return false
|
||||
else
|
||||
SetMapToCurrentZone()
|
||||
local mapFileName, _, _, _, microDungeonMapName = GetMapInfo()
|
||||
if (SetMapToCurrentZone and SetMapToCurrentZone()) then
|
||||
local mapID = C_Map.GetBestMapForUnit ("player")
|
||||
if (not mapID) then
|
||||
--print ("Details! exeption handled: zone has no map")
|
||||
return
|
||||
end
|
||||
local mapFileName, _, _, _, microDungeonMapName = C_Map.GetMapInfo (mapID)
|
||||
|
||||
if (city_zones [mapFileName]) then
|
||||
return true
|
||||
elseif (microDungeonMapName and type (microDungeonMapName) == "string" and sub_zones [microDungeonMapName]) then
|
||||
return true
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user