cooldown: only draw cd on known frames

This commit is contained in:
shagu
2018-04-08 19:04:43 +02:00
parent ea17079ad2
commit 41e2400bcb
8 changed files with 41 additions and 8 deletions
+1
View File
@@ -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)