From b4934660053067c00be74dccd7f9fa89b2085235 Mon Sep 17 00:00:00 2001 From: Britt Yazel Date: Fri, 18 Jan 2019 01:33:30 -0800 Subject: [PATCH] whoops add back in nil SetCooldownTimer case --- Objects/BUTTON.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Objects/BUTTON.lua b/Objects/BUTTON.lua index 5dc0c36a..0e288300 100644 --- a/Objects/BUTTON.lua +++ b/Objects/BUTTON.lua @@ -638,6 +638,9 @@ function BUTTON:UpdateCooldown() self:SetSpellCooldown(spell) elseif (item and #item>0) then self:SetItemCooldown(item) + else + ---this is super important for removing CD's from empty buttons, like when switching states. You don't want the CD from one state to show on a different state. + self:SetCooldownTimer() end end