mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- fixed a bug with custom cooldown bars that would cause the bar to flash if a maximum duration was specified higher than 1.5
This commit is contained in:
@ -351,7 +351,7 @@ function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
|
||||
localDuration = (now - localStart) + localRemaining
|
||||
end
|
||||
|
||||
if self.moduleSettings.maxDuration and tonumber(self.moduleSettings.maxDuration) ~= 0 then
|
||||
if self.moduleSettings.maxDuration and tonumber(self.moduleSettings.maxDuration) ~= 0 and localDuration > 1.5 then
|
||||
localDuration = tonumber(self.moduleSettings.maxDuration)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user