Skip to content

Commit

Permalink
Fixed an issue with classic versions of the game
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 4, 2024
1 parent d745679 commit 3a726e6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/parser.lua
Original file line number Diff line number Diff line change
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 = Details.challengeModeMapId or C_ChallengeMode.GetActiveChallengeMapID()
local mapID = completionInfo.mapChallengeModeID or Details.challengeModeMapId or C_ChallengeMode.GetActiveChallengeMapID()
local upgradeMembers = completionInfo.members
local level = completionInfo.level
local time = completionInfo.time
Expand Down
5 changes: 3 additions & 2 deletions functions/storage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1029,8 +1029,9 @@ function Details.Database.StoreEncounter(combat)
end

if (diffName == "mythicdungeon") then
local mythicLevel = C_ChallengeMode.GetActiveKeystoneInfo()
local mapChallengeModeID = C_ChallengeMode.GetActiveChallengeMapID()
local completionInfo = C_ChallengeMode.GetChallengeCompletionInfo()
local mapChallengeModeID = completionInfo.mapChallengeModeID
local mythicLevel = completionInfo.level

if (not mythicLevel and not mapChallengeModeID) then
return
Expand Down
2 changes: 1 addition & 1 deletion startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function Details222.StartUp.StartMeUp()
Details:FillUserCustomSpells()
end)

Details.challengeModeMapId = C_ChallengeMode.GetActiveChallengeMapID()
Details.challengeModeMapId = C_ChallengeMode and C_ChallengeMode.GetActiveChallengeMapID()

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

0 comments on commit 3a726e6

Please sign in to comment.