Skip to content

Commit

Permalink
Cache challenge mode mapID at the start of the run
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 3, 2024
1 parent 2fef5c9 commit d21cf88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5933,6 +5933,8 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
end

local challengeModeMapId

function Details.parser_functions:CHALLENGE_MODE_START(...) --~challenge ~mythic+ ~m+
--send mythic dungeon start event
if (Details.debug) then
Expand All @@ -5951,6 +5953,8 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1

local activeKeystoneLevel, activeAffixIDs, wasActiveKeystoneCharged = C_ChallengeMode.GetActiveKeystoneInfo()
Details222.MythicPlus.Level = activeKeystoneLevel or 2

challengeModeMapId = C_ChallengeMode.GetActiveChallengeMapID()
end
end

Expand Down Expand Up @@ -6005,7 +6009,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
local completionInfo = C_ChallengeMode.GetChallengeCompletionInfo()

local primaryAffix = 0
local mapID = C_ChallengeMode.GetActiveChallengeMapID()
local mapID = challengeModeMapId or C_ChallengeMode.GetActiveChallengeMapID()
local upgradeMembers = completionInfo.members
local level = completionInfo.level
local time = completionInfo.time
Expand Down

0 comments on commit d21cf88

Please sign in to comment.