Skip to content

Commit

Permalink
Update "FilterQuestLineQuests"
Browse files Browse the repository at this point in the history
  • Loading branch information
erglo committed Aug 28, 2024
1 parent d51c7fa commit 1486ca2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1233,10 +1233,10 @@ function LocalQuestLineUtils:AddQuestLineQuestToMap(mapID, questLineID, questID)
end
end

function LocalQuestLineUtils:FilterQuestLineQuests(questLineID)
function LocalQuestLineUtils:FilterQuestLineQuests(questLineInfo)
local filteredQuestInfos = {}
filteredQuestInfos.quests = {}
filteredQuestInfos.unfilteredQuests = LocalQuestCache:GetQuestLineQuests(questLineID)
filteredQuestInfos.unfilteredQuests = LocalQuestCache:GetQuestLineQuests(questLineInfo.questLineID)
filteredQuestInfos.numTotalUnfiltered = #filteredQuestInfos.unfilteredQuests
filteredQuestInfos.numTotal = 0
filteredQuestInfos.numCompleted = 0
Expand Down Expand Up @@ -1329,7 +1329,7 @@ LocalQuestLineUtils.AddQuestLineDetailsToTooltip = function(self, tooltip, pin,
pin.questInfo.currentQuestLineName = questLineInfo.questLineName
-- Note: This is used to identify the currently active zone story.

local filteredQuestInfos = LocalQuestLineUtils:FilterQuestLineQuests(questLineInfo.questLineID)
local filteredQuestInfos = LocalQuestLineUtils:FilterQuestLineQuests(questLineInfo)

-- Plugin / category name
local categoryNameOnly = ns.settings.showPluginName and LocalUtils:HasBasicTooltipContent(pin) or (not ns.settings.showZoneStorySeparately and LocalUtils:ShouldShowZoneStoryDetails(pin))
Expand Down

0 comments on commit 1486ca2

Please sign in to comment.