v3.2.0: fixed wand of lightning on-hit not scaling with staff power

This commit is contained in:
Evan Debenham
2025-07-25 11:55:44 -04:00
parent a7b5763ed5
commit 49c335b284

View File

@@ -112,7 +112,9 @@ public class WandOfLightning extends DamageWand {
float procChance = (buffedLvl()+1f)/(buffedLvl()+4f) * procChanceMultiplier(attacker);
if (Random.Float() < procChance) {
FlavourBuff.prolong(attacker, LightningCharge.class, LightningCharge.DURATION);
float powerMulti = Math.min(1f, procChance);
FlavourBuff.prolong(attacker, LightningCharge.class, powerMulti*LightningCharge.DURATION);
attacker.sprite.centerEmitter().burst( SparkParticle.FACTORY, 10 );
attacker.sprite.flash();
Sample.INSTANCE.play( Assets.Sounds.LIGHTNING );