mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-22 09:31:20 +01:00
Fixed a cooldown reduction formula issue
This commit is contained in:
parent
ccb72e719e
commit
cbca4ab306
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user