cooldowns enable/disable in testmode
This commit is contained in:
parent
20a654c810
commit
f0c0286708
@ -238,9 +238,16 @@ end
|
|||||||
|
|
||||||
function Cooldowns:Test(unit)
|
function Cooldowns:Test(unit)
|
||||||
local button = Gladdy.buttons[unit]
|
local button = Gladdy.buttons[unit]
|
||||||
button.spellCooldownFrame:Show()
|
if Gladdy.db.cooldown then
|
||||||
button.lastCooldownSpell = 1
|
button.spellCooldownFrame:Show()
|
||||||
self:UpdateTestCooldowns(unit)
|
button.lastCooldownSpell = 1
|
||||||
|
self:UpdateTestCooldowns(unit)
|
||||||
|
else
|
||||||
|
button.spellCooldownFrame:Hide()
|
||||||
|
button.lastCooldownSpell = 1
|
||||||
|
self:UpdateTestCooldowns(unit)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Cooldowns:UpdateTestCooldowns(unit)
|
function Cooldowns:UpdateTestCooldowns(unit)
|
||||||
|
Loading…
Reference in New Issue
Block a user