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