From e0f5f111c0ebe4cf53763d12601e355c5255d5c5 Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 13 Apr 2020 14:06:20 +0200 Subject: [PATCH] unitframes: show buff indicator timers below 100s --- api/unitframes.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/unitframes.lua b/api/unitframes.lua index e50d71ae..4153f155 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -1690,7 +1690,7 @@ function pfUI.uf:ClickAction(button) end function pfUI.uf:AddIcon(frame, pos, icon, timeleft) - local iconsize = C.unitframes.indicator_size + local iconsize = tonumber(C.unitframes.indicator_size) if not frame.hp then return end local frame = frame.hp.bar if pos > 6 or pos > ceil(frame:GetWidth() / iconsize) then return end @@ -1714,7 +1714,7 @@ function pfUI.uf:AddIcon(frame, pos, icon, timeleft) end end frame.icon[pos].tex:SetTexture(icon) - CooldownFrame_SetTimer(frame.icon[pos].cd, GetTime(), (timeleft or 0), 1) + CooldownFrame_SetTimer(frame.icon[pos].cd, GetTime(), (timeleft and timeleft < 100 and iconsize > 9 and timeleft or 0), 1) pfUI.api.CreateBackdrop(frame.icon[pos], nil, true) frame.icon[pos]:Show() end