cooldowns enable/disable in testmode

This commit is contained in:
Sumsebrum 2021-06-16 14:10:09 +02:00
parent 20a654c810
commit f0c0286708

View File

@ -238,9 +238,16 @@ end
function Cooldowns:Test(unit) function Cooldowns:Test(unit)
local button = Gladdy.buttons[unit] local button = Gladdy.buttons[unit]
if Gladdy.db.cooldown then
button.spellCooldownFrame:Show() button.spellCooldownFrame:Show()
button.lastCooldownSpell = 1 button.lastCooldownSpell = 1
self:UpdateTestCooldowns(unit) self:UpdateTestCooldowns(unit)
else
button.spellCooldownFrame:Hide()
button.lastCooldownSpell = 1
self:UpdateTestCooldowns(unit)
end
end end
function Cooldowns:UpdateTestCooldowns(unit) function Cooldowns:UpdateTestCooldowns(unit)