From 9e0bc5313f14a48c08aa648fbfa71eba84d62ddf Mon Sep 17 00:00:00 2001 From: Nnoggie <27819512+Nnoggie@users.noreply.github.com> Date: Tue, 19 Nov 2024 20:03:16 +0100 Subject: [PATCH] show correct timer even when player is currently in a key --- Modules/DungeonSelect.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Modules/DungeonSelect.lua b/Modules/DungeonSelect.lua index b7e54ff2..29c67a8f 100644 --- a/Modules/DungeonSelect.lua +++ b/Modules/DungeonSelect.lua @@ -103,11 +103,17 @@ function MDT:UpdateDungeonDropDown() local timer if mapInfo.mapID then timer = select(3, C_ChallengeMode.GetMapUIInfo(mapInfo.mapID)) + -- we want to always show the correct timer including the Challenger's Peril affix + -- add 90s if we are not currently in a key + local activeKeystoneLevel = select(1, C_ChallengeMode.GetActiveKeystoneInfo()) + if not activeKeystoneLevel or activeKeystoneLevel < 7 then + timer = timer + 90 + end end GameTooltip:SetOwner(dungeonButtons[idx], "ANCHOR_BOTTOMRIGHT", -dungeonButtons[idx]:GetWidth(), 0) GameTooltip:AddLine(MDT.dungeonList[dungeonIdx], 1, 1, 1) if timer then - GameTooltip:AddLine(L["Timer"]..": "..formatTime(timer + 90), 1, 1, 1) + GameTooltip:AddLine(L["Timer"]..": "..formatTime(timer), 1, 1, 1) end GameTooltip:Show() end)