Skip to content

Commit

Permalink
fixing the latest commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 3, 2024
1 parent d21cf88 commit d745679
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--local pointers

Details.challengeModeMapId = nil

local UnitAffectingCombat = UnitAffectingCombat
local UnitHealth = UnitHealth
local UnitHealthMax = UnitHealthMax
Expand Down Expand Up @@ -5933,8 +5935,6 @@ 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 @@ -5954,7 +5954,7 @@ 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()
Details.challengeModeMapId = C_ChallengeMode.GetActiveChallengeMapID()
end
end

Expand Down Expand Up @@ -6009,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 = challengeModeMapId or C_ChallengeMode.GetActiveChallengeMapID()
local mapID = Details.challengeModeMapId or C_ChallengeMode.GetActiveChallengeMapID()
local upgradeMembers = completionInfo.members
local level = completionInfo.level
local time = completionInfo.time
Expand Down
2 changes: 2 additions & 0 deletions startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function Details222.StartUp.StartMeUp()
Details:FillUserCustomSpells()
end)

Details.challengeModeMapId = C_ChallengeMode.GetActiveChallengeMapID()

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--row single click, this determines what happen when the user click on a bar

Expand Down

0 comments on commit d745679

Please sign in to comment.