From 4f63a6fee9ae20af54de0201595d38b83a09c31b Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 7 Feb 2024 12:07:04 -0300 Subject: [PATCH] Fixed an error given at completing a mythic dungeon run --- frames/window_mythicplus/window_end_of_run.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frames/window_mythicplus/window_end_of_run.lua b/frames/window_mythicplus/window_end_of_run.lua index 80225dc09..aca03fbc1 100644 --- a/frames/window_mythicplus/window_end_of_run.lua +++ b/frames/window_mythicplus/window_end_of_run.lua @@ -414,26 +414,26 @@ function mythicDungeonFrames.ShowEndOfMythicPlusPanel(bIsDebug) readyFrame.ElapsedTimeAmountLabel = elapsedTimeAmount end - mythicDungeonCharts.ReadyFrame:Show() + mythicDungeonFrames.ReadyFrame:Show() --update the run time and time not in combat local elapsedTime = Details222.MythicPlus.time or 1507 - mythicDungeonCharts.ReadyFrame.ElapsedTimeAmountLabel.text = DetailsFramework:IntegerToTimer(elapsedTime) + mythicDungeonFrames.ReadyFrame.ElapsedTimeAmountLabel.text = DetailsFramework:IntegerToTimer(elapsedTime) local overallMythicDungeonCombat = Details:GetCurrentCombat() if (overallMythicDungeonCombat:GetCombatType() == DETAILS_SEGMENTTYPE_MYTHICDUNGEON_OVERALL) then local combatTime = overallMythicDungeonCombat:GetCombatTime() local notInCombat = elapsedTime - combatTime - mythicDungeonCharts.ReadyFrame.TimeNotInCombatAmountLabel.text = DetailsFramework:IntegerToTimer(notInCombat) .. " (" .. math.floor(notInCombat / elapsedTime * 100) .. "%)" + mythicDungeonFrames.ReadyFrame.TimeNotInCombatAmountLabel.text = DetailsFramework:IntegerToTimer(notInCombat) .. " (" .. math.floor(notInCombat / elapsedTime * 100) .. "%)" end return end --create the panel - if (not mythicDungeonCharts.ReadyFrame) then - mythicDungeonCharts.ReadyFrame = CreateFrame("frame", "DetailsMythicDungeonReadyFrame", UIParent, "BackdropTemplate") - local readyFrame = mythicDungeonCharts.ReadyFrame + if (not mythicDungeonFrames.ReadyFrame) then + mythicDungeonFrames.ReadyFrame = CreateFrame("frame", "DetailsMythicDungeonReadyFrame", UIParent, "BackdropTemplate") + local readyFrame = mythicDungeonFrames.ReadyFrame readyFrame.playerCacheByName = {} local textColor = {1, 0.8196, 0, 1} @@ -639,7 +639,7 @@ function mythicDungeonFrames.ShowEndOfMythicPlusPanel(bIsDebug) readyFrame.RantingLabel = rantingLabel end - local readyFrame = mythicDungeonCharts.ReadyFrame + local readyFrame = mythicDungeonFrames.ReadyFrame readyFrame:Show() for i = 1, #readyFrame.PlayerBanners do