mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
skin: only apply cooldowns on existing frames
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user