From e0d703dc588c512ed95b5bb3313e0f687d8afcd8 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 22 Oct 2023 15:54:17 -0400 Subject: [PATCH] v2.2.1: fixed dragon kick stun applying to down ghouls Also allowed kick to visually knockback dead targets --- .../shatteredpixeldungeon/actors/buffs/MonkEnergy.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MonkEnergy.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MonkEnergy.java index 528f42358..3325ecba8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MonkEnergy.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/MonkEnergy.java @@ -571,7 +571,7 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action { Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG); } - if (enemy.isAlive() && oldPos == enemy.pos){ + if (oldPos == enemy.pos){ //trace a ballistica to our target (which will also extend past them Ballistica trajectory = new Ballistica(hero.pos, enemy.pos, Ballistica.STOP_TARGET); //trim it to just be the part that goes past them @@ -579,7 +579,7 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action { //knock them back along that ballistica WandOfBlastWave.throwChar(enemy, trajectory, 6, true, false, hero); - if (trajectory.dist > 0) { + if (trajectory.dist > 0 && enemy.isActive()) { Buff.affect(enemy, Paralysis.class, Math.min( 6, trajectory.dist)); } } @@ -600,7 +600,7 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action { //knock them back along that ballistica WandOfBlastWave.throwChar(ch, trajectory, 6, true, false, hero); - if (trajectory.dist > 0) { + if (trajectory.dist > 0 && enemy.isActive()) { Buff.affect(ch, Paralysis.class, Math.min( 6, trajectory.dist)); } }