mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 15:10:00 +00:00
cooldown: only draw cd on known frames
This commit is contained in:
@@ -526,6 +526,7 @@ pfUI:RegisterModule("nameplates", function ()
|
||||
|
||||
if pfUI.debuffs and pfUI.debuffs.active and name then
|
||||
this.debuffs[j].cd = this.debuffs[j].cd or CreateFrame("Model", nil, this.debuffs[j], "CooldownFrameTemplate")
|
||||
this.debuffs[j].cd.pfCooldownType = "ALL"
|
||||
local start, duration, timeleft = pfUI.debuffs:GetDebuffInfo("target", name)
|
||||
this.debuffs[j].cd:SetAlpha(0)
|
||||
CooldownFrame_SetTimer(this.debuffs[j].cd, start, duration, 1)
|
||||
|
||||
Reference in New Issue
Block a user