mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- don't trigger the ability cooldown bar if the spell in question only has a 1.5 second or less cooldown. this indicates that it's on cooldown as part of the GCD and we have a separate module for GCD tracking
This commit is contained in:
@ -481,7 +481,7 @@ function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
|
|||||||
local localDuration = nil
|
local localDuration = nil
|
||||||
local localStart, localRemaining, hasCooldown = GetSpellCooldown(buffName)
|
local localStart, localRemaining, hasCooldown = GetSpellCooldown(buffName)
|
||||||
|
|
||||||
if (hasCooldown == 1) then
|
if (hasCooldown == 1 and localRemaining > 1.5) then
|
||||||
-- the item has a potential cooldown
|
-- the item has a potential cooldown
|
||||||
if localStart == 0 and localRemaining == 0 then
|
if localStart == 0 and localRemaining == 0 then
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
Reference in New Issue
Block a user