From 7e2e33379179b35e49846d6d14bc6a7490406161 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 28 Sep 2018 23:25:29 +0200 Subject: [PATCH] skin: only apply cooldowns on existing frames --- modules/skin.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/skin.lua b/modules/skin.lua index f928678a..91a83412 100644 --- a/modules/skin.lua +++ b/modules/skin.lua @@ -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