Changed how cooldowns are started (ticket #205)

This commit is contained in:
Parnic
2016-05-26 23:49:22 -05:00
parent b9cfe48d03
commit b328ad0739
3 changed files with 20 additions and 5 deletions

View File

@ -1,6 +1,11 @@
local L = LibStub("AceLocale-3.0"):GetLocale("IceHUD", false)
IceTargetInfo = IceCore_CreateClass(IceElement)
local CooldownFrame_SetTimer = CooldownFrame_SetTimer
if IceHUD.WowVer >= 70000 then
CooldownFrame_SetTimer = CooldownFrame_Set
end
local DogTag = nil
local internal = "internal"
@ -1445,7 +1450,7 @@ function IceTargetInfo.prototype:SetupAura(aura, i, icon, duration, expirationTi
if (duration and duration > 0 and expirationTime and expirationTime > 0) then
local start = expirationTime - duration
frame.cd:SetCooldown(start, duration)
CooldownFrame_SetTimer(frame.cd, start, duration, true)
frame.cd:Show()
else
frame.cd:Hide()