Skip to content

Commit

Permalink
Don't cache cooldown text
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonomit committed Feb 26, 2024
1 parent bac778c commit 2588c54
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Operations/RewordLine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

0 comments on commit 2588c54

Please sign in to comment.