From d7456799c68f1dfd1fda3b992dd99c812fbf68dc Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 3 Nov 2024 15:11:24 -0300 Subject: [PATCH] fixing the latest commit --- core/parser.lua | 8 ++++---- startup.lua | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/parser.lua b/core/parser.lua index 41ae46a7f..ffe38597a 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -8,6 +8,8 @@ ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- --local pointers + Details.challengeModeMapId = nil + local UnitAffectingCombat = UnitAffectingCombat local UnitHealth = UnitHealth local UnitHealthMax = UnitHealthMax @@ -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 @@ -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 @@ -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 diff --git a/startup.lua b/startup.lua index ba2ba9f14..fc61bc0c5 100644 --- a/startup.lua +++ b/startup.lua @@ -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