Skip to content

Commit

Permalink
show correct timer even when player is currently in a key
Browse files Browse the repository at this point in the history
  • Loading branch information
Nnoggie committed Nov 19, 2024
1 parent d24808c commit 9e0bc53
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Modules/DungeonSelect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e0bc53

Please sign in to comment.