Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
whoops add back in nil SetCooldownTimer case
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Jan 18, 2019
1 parent e7e9a7e commit b493466
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Objects/BUTTON.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b493466

Please sign in to comment.