Files
2026-11-23 03:28:32 +02:00

18 lines
949 B
Lua

-- The Turtle/Octo server reports raid locks without per-boss kills (1.12 SMSG_RAID_INSTANCE_INFO),
-- so the native per-encounter list would show every boss as "Available". Show what Octo shows instead.
-- Post-hook only (hooksecurefunc): no Blizzard globals or frame fields are written.
local function replace(tooltip, index)
if type(index) ~= "number" then return end
local name, _, reset, _, locked, extended, _, _, maxPlayers, difficultyName = GetSavedInstanceInfo(index)
if not name then return end
tooltip:ClearLines()
tooltip:AddLine(name, 1, 1, 1)
if difficultyName and difficultyName ~= "" then tooltip:AddLine(difficultyName, 0.8, 0.8, 0.8) end
if locked or extended then
tooltip:AddLine("Locked - resets in " .. SecondsToTime(reset or 0), 1, 0.82, 0)
else
tooltip:AddLine("Lock expired", 0.6, 0.6, 0.6)
end
end
hooksecurefunc(GameTooltip, "SetInstanceLockEncountersComplete", replace)