Fixed a cooldown reduction formula issue

This commit is contained in:
Indyuce 2020-05-01 20:37:09 +02:00
parent ccb72e719e
commit cbca4ab306

View File

@ -418,7 +418,7 @@ public class PlayerData {
double cooldown = ability.getModifier("cooldown");
// apply cooldown reduction
cooldown *= 1 - Math.max(.8, stats.getStat(ItemStat.COOLDOWN_REDUCTION) / 100);
cooldown *= 1 - Math.min(.8, stats.getStat(ItemStat.COOLDOWN_REDUCTION) / 100);
if (cooldown > 0)
applyAbilityCooldown(ability.getAbility(), cooldown);