mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update ab
This commit is contained in:
@@ -116,9 +116,15 @@ function E:OnSetCooldown(start, duration, enable)
|
||||
end
|
||||
end
|
||||
|
||||
local oldCooldownFrame_SetTimer = CooldownFrame_SetTimer
|
||||
function E:RegisterCooldown(cooldown)
|
||||
if not E.private.cooldown.enable or cooldown.isHooked then return end
|
||||
hooksecurefunc("CooldownFrame_SetTimer", E.OnSetCooldown)
|
||||
|
||||
function CooldownFrame_SetTimer(this, start, duration, enable)
|
||||
oldCooldownFrame_SetTimer(this, start, duration, enable)
|
||||
E.OnSetCooldown(this, start, duration, enable)
|
||||
end
|
||||
|
||||
cooldown.isHooked = true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user