From 6d3ef615d3e2b970f000c120df6b975fb6bd7eb6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 31 Aug 2024 13:56:38 -0400 Subject: [PATCH] v2.5.0: fixed spike ability rarely triggering 'on kill' fx incorrectly --- .../shatteredpixeldungeon/items/weapon/melee/Spear.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Spear.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Spear.java index f515d17b1..1d6202235 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Spear.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/weapon/melee/Spear.java @@ -116,7 +116,7 @@ public class Spear extends MeleeWeapon { trajectory = new Ballistica(trajectory.collisionPos, trajectory.path.get(trajectory.path.size() - 1), Ballistica.PROJECTILE); //knock them back along that ballistica WandOfBlastWave.throwChar(enemy, trajectory, 1, true, false, hero); - } else { + } else if (!enemy.isAlive()) { wep.onAbilityKill(hero, enemy); } Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);