From 2588c54504b05c8cf472c03ca633421e12dcc0b2 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Sun, 25 Feb 2024 19:05:49 -0500 Subject: [PATCH] Don't cache cooldown text --- Operations/RewordLine.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Operations/RewordLine.lua b/Operations/RewordLine.lua index 19ed042..588a686 100644 --- a/Operations/RewordLine.lua +++ b/Operations/RewordLine.lua @@ -28,6 +28,10 @@ cacheLineTypes = setmetatable({ DamagePerSecond = false, }, {__index = function() return true end}) +rewordBlacklist = setmetatable({ + Cooldown = true, +}, {__index = function() return false end}) + local miscRewordLines = Addon:MakeLookupTable{ "SecondaryStat", "Enchant", @@ -192,7 +196,7 @@ function Addon:RewordLine(tooltip, line, tooltipData) text = format("[%d] ", line.i) .. text end - if text ~= line.realTextLeft and (text ~= line.textLeftText or line.recolorLeft) then + if text ~= line.realTextLeft and (text ~= line.textLeftText or line.recolorLeft) and not rewordBlacklist[line.type] then line.rewordLeft = text end end