From 49c335b28451ef781349b3785b71faadd12f22bf Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 25 Jul 2025 11:55:44 -0400 Subject: [PATCH] v3.2.0: fixed wand of lightning on-hit not scaling with staff power --- .../shatteredpixeldungeon/items/wands/WandOfLightning.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLightning.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLightning.java index 837b12a6c..41e7dc9ad 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLightning.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfLightning.java @@ -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 );