v2.5.0: fixed spike ability rarely triggering 'on kill' fx incorrectly

This commit is contained in:
Evan Debenham
2024-08-31 13:56:38 -04:00
committed by Evan Debenham
parent 57ccda1bea
commit 6d3ef615d3

View File

@@ -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);