Commit f350ce62 authored by Blazeflack's avatar Blazeflack
Browse files

Fixed error in previous commit

parent 6d3c46cd
......@@ -1145,14 +1145,14 @@ function AB:ToggleDesaturation(value)
if value then
LAB.RegisterCallback(AB, "OnCooldownUpdate", OnCooldownUpdate)
local start, duration
for button in pairs(LAB.ActionButtons) do
for button in pairs(LAB.actionButtons) do
button.saturationLocked = true
start, duration = button:GetCooldown()
OnCooldownUpdate(nil, button, start, duration)
end
else
LAB.UnregisterCallback(AB, "OnCooldownUpdate")
for button in pairs(LAB.ActionButtons) do
for button in pairs(LAB.actionButtons) do
button.saturationLocked = nil
button.icon:SetDesaturated(false)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment