Skip to content

Commit

Permalink
Fix bonfire markers reappearing on the map for Cata Classic.
Browse files Browse the repository at this point in the history
Fixes #18
  • Loading branch information
Ravendwyr committed Jun 24, 2024
1 parent a27303b commit de0decb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ local notes = {
local C_Calendar = _G.C_Calendar
local C_DateAndTime = _G.C_DateAndTime
local C_Map = _G.C_Map
local GetQuestsCompleted = isClassic and _G.GetQuestsCompleted or _G.C_QuestLog.GetAllCompletedQuestIDs
local GetAllCompletedQuestIDs = _G.C_QuestLog.GetAllCompletedQuestIDs
local GetQuestsCompleted = _G.GetQuestsCompleted
local C_Timer_After = _G.C_Timer.After
local GameTooltip = _G.GameTooltip
local IsControlKeyDown = _G.IsControlKeyDown
Expand Down Expand Up @@ -284,8 +285,12 @@ local function CheckEventActive()
end

if setEnabled and not SummerFestival.isEnabled then
for _, id in ipairs(GetQuestsCompleted()) do
completedQuests[id] = true
if isClassic then
completedQuests = GetQuestsCompleted(completedQuests)
else
for _, id in ipairs(GetAllCompletedQuestIDs()) do
completedQuests[id] = true
end
end

SummerFestival.isEnabled = true
Expand Down

0 comments on commit de0decb

Please sign in to comment.