- 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:
Parnic
2010-07-20 03:47:53 +00:00
parent 4d792ecf63
commit 2ad38ae8e7

View File

@ -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