- fixed maximum duration configuration not working for cooldown bars

This commit is contained in:
Parnic
2010-05-06 12:56:26 +00:00
parent 4829931b2f
commit 1615f666ce

View File

@ -349,7 +349,7 @@ function IceCustomCDBar.prototype:GetCooldownDuration(buffName)
localDuration = (now - localStart) + localRemaining
end
if self.moduleSettings.maxDuration and self.moduleSettings.maxDuration ~= 0 then
if self.moduleSettings.maxDuration and tonumber(self.moduleSettings.maxDuration) ~= 0 then
localDuration = tonumber(self.moduleSettings.maxDuration)
end