mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- and now for the correctly-merged version of the cd bar
This commit is contained in:
@ -481,14 +481,10 @@ function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
|
|||||||
local localRemaining = nil
|
local localRemaining = nil
|
||||||
local localStart, localDuration, hasCooldown = GetSpellCooldown(buffName)
|
local localStart, localDuration, hasCooldown = GetSpellCooldown(buffName)
|
||||||
|
|
||||||
if (hasCooldown == 1 and localRemaining > 1.5) then
|
if (hasCooldown == 1) then
|
||||||
-- the item has a potential cooldown
|
-- the item has a potential cooldown
|
||||||
if (localDuration <= 1.5) then
|
if (localDuration <= 1.5) then
|
||||||
if (self.cooldownEndTime > now) then
|
return nil, nil
|
||||||
return self.cooldownDuration, (self.cooldownEndTime - now)
|
|
||||||
else
|
|
||||||
return nil, nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
localRemaining = localDuration + (localStart - now)
|
localRemaining = localDuration + (localStart - now)
|
||||||
|
Reference in New Issue
Block a user