From 63e6ab9e0f6d189baf8a6919d95ea549d39cb2cf Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 29 Aug 2024 15:20:38 -0400 Subject: [PATCH] v2.5.0: fixed new cursed wand lightning applying para after kill --- .../shatteredpixeldungeon/items/wands/CursedWand.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java index 75ee73160..729d68650 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java @@ -576,8 +576,9 @@ public class CursedWand { if (ch.alignment != Char.Alignment.ALLY || !positiveOnly){ //shocking dart damage and a little stun ch.damage(Random.NormalIntRange(5 + Dungeon.scalingDepth() / 4, 10 + Dungeon.scalingDepth() / 4), new Electricity()); - Buff.affect(ch, Paralysis.class, Paralysis.DURATION/2f); - if (!ch.isAlive() && ch == Dungeon.hero){ + if (ch.isAlive()) { + Buff.affect(ch, Paralysis.class, Paralysis.DURATION / 2f); + } else if (ch == Dungeon.hero){ if (user == Dungeon.hero && origin != null) { Badges.validateDeathFromFriendlyMagic(); Dungeon.fail( origin );