update ab

This commit is contained in:
Bunny67
2018-07-15 10:52:59 +03:00
parent 00e76bc91d
commit 497a6926b1
2 changed files with 13 additions and 10 deletions
+7 -1
View File
@@ -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