v0.9.0: fixed incorrect damage scaling with chill on frost wand

This commit is contained in:
Evan Debenham 2020-09-04 18:54:55 -04:00
parent f7f5832145
commit 3c3a90d30a

View File

@ -72,7 +72,7 @@ public class WandOfFrost extends DamageWand {
if (ch.buff(Chill.class) != null){ if (ch.buff(Chill.class) != null){
//6.67% less damage per turn of chill remaining, to a max of 10 turns (50% dmg) //6.67% less damage per turn of chill remaining, to a max of 10 turns (50% dmg)
float chillturns = Math.min(10, ch.buff(Chill.class).cooldown()); float chillturns = Math.min(10, ch.buff(Chill.class).cooldown());
damage = (int)Math.round(damage * Math.pow(0.9633f, chillturns)); damage = (int)Math.round(damage * Math.pow(0.9333f, chillturns));
} else { } else {
ch.sprite.burst( 0xFF99CCFF, buffedLvl() / 2 + 2 ); ch.sprite.burst( 0xFF99CCFF, buffedLvl() / 2 + 2 );
} }