From 80b520cae5a810e0b9d0811ef0f2843748985a1a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 21 Aug 2022 13:43:44 -0400 Subject: [PATCH] v1.4.0: fixed knockback effects paralyzing dead characters --- .../shatteredpixeldungeon/items/wands/WandOfBlastWave.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java index 35d9719bf..a159cd72b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/WandOfBlastWave.java @@ -158,9 +158,10 @@ public class WandOfBlastWave extends DamageWand { int oldPos = ch.pos; ch.pos = newPos; if (finalCollided && ch.isAlive()) { - ch.damage(Random.NormalIntRange(finalDist, 2*finalDist), this); - Paralysis.prolong(ch, Paralysis.class, 1 + finalDist/2f); - if (ch == Dungeon.hero && !ch.isAlive()){ + ch.damage(Random.NormalIntRange(50, 50), this); + if (ch.isAlive()) { + Paralysis.prolong(ch, Paralysis.class, 1 + finalDist/2f); + } else if (ch == Dungeon.hero){ if (cause == WandOfBlastWave.class || cause == AquaBlast.class){ Badges.validateDeathFromFriendlyMagic(); }