Commit ba73f22e authored by TOM_RUS's avatar TOM_RUS
Browse files

WOW-27547patch8.0.1_Retail

parent 721b9b90
......@@ -202,7 +202,7 @@ function WorldQuestDataProviderMixin:RefreshAllData(fromOnShow)
local mapID = mapCanvas:GetMapID();
if (mapID) then
taskInfo = C_TaskQuest.GetQuestsForPlayerByMapID(mapID);
self.matchWorldMapFilters = MapUtil.MapHasUnlockedBounties(mapID);
self.matchWorldMapFilters = MapUtil.MapHasEmissaries(mapID);
end
if taskInfo then
......
......@@ -138,9 +138,9 @@ function WorldMapTrackingOptionsButtonMixin:InitializeDropDown()
UIDropDownMenu_AddButton(info);
end
-- If we aren't on a map with world quests don't show the world quest reward filter options.
-- If we aren't on a map which has emissaries don't show the world quest reward filter options.
local mapID = self:GetParent():GetMapID();
if not mapID or not MapUtil.MapHasUnlockedBounties(mapID) then
if not mapID or not MapUtil.MapHasEmissaries(mapID) then
return;
end
......
......@@ -35,6 +35,11 @@ function MapUtil.MapHasUnlockedBounties(mapID)
return displayLocation and not lockedQuestID and #bounties > 0;
end
function MapUtil.MapHasEmissaries(mapID)
local bounties, displayLocation, lockedQuestID = GetQuestBountyInfoForMapID(mapID);
return not not displayLocation;
end
function MapUtil.FindBestAreaNameAtMouse(mapID, normalizedCursorX, normalizedCursorY)
local exploredAreaIDs = C_MapExplorationInfo.GetExploredAreaIDsAtPosition(mapID, CreateVector2D(normalizedCursorX, normalizedCursorY));
if exploredAreaIDs then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment