skin: only apply cooldowns on existing frames

This commit is contained in:
shagu
2018-09-28 23:25:29 +02:00
parent 7d1890176d
commit 7e2e333791
+2 -2
View File
@@ -35,12 +35,12 @@ pfUI:RegisterModule("skin", function ()
if C.appearance.cd.blizzard == "1" then
hooksecurefunc("PaperDollItemSlotButton_Update", function()
local cooldown = getglobal(this:GetName().."Cooldown")
cooldown.pfCooldownType = "ALL"
if cooldown then cooldown.pfCooldownType = "ALL" end
end)
hooksecurefunc("SpellButton_UpdateButton", function()
local cooldown = getglobal(this:GetName().."Cooldown")
cooldown.pfCooldownType = "ALL"
if cooldown then cooldown.pfCooldownType = "ALL" end
end)
end