Custom cooldown should not extend cooldown time when cooldown is inapplicable.

This commit is contained in:
ccd0 2017-09-28 01:56:50 -07:00
parent 8e043e9951
commit a09d3e846d

View File

@ -159,9 +159,9 @@ QR.cooldown =
''
seconds = Math.max seconds, QR.cooldown.delays[type + suffix] - elapsed
# If additional cooldown is enabled, add the configured seconds to the count.
if QR.cooldown.customCooldown
seconds = Math.max seconds, parseInt(Conf['customCooldown'], 10) - elapsed
# If additional cooldown is enabled, add the configured seconds to the count.
if QR.cooldown.customCooldown
seconds = Math.max seconds, parseInt(Conf['customCooldown'], 10) - elapsed
nCooldowns += Object.keys(cooldowns).length