v2.5.0: fixed spike ability rarely triggering 'on kill' fx incorrectly
This commit is contained in:
committed by
Evan Debenham
parent
57ccda1bea
commit
6d3ef615d3
+1
-1
@@ -116,7 +116,7 @@ public class Spear extends MeleeWeapon {
|
|||||||
trajectory = new Ballistica(trajectory.collisionPos, trajectory.path.get(trajectory.path.size() - 1), Ballistica.PROJECTILE);
|
trajectory = new Ballistica(trajectory.collisionPos, trajectory.path.get(trajectory.path.size() - 1), Ballistica.PROJECTILE);
|
||||||
//knock them back along that ballistica
|
//knock them back along that ballistica
|
||||||
WandOfBlastWave.throwChar(enemy, trajectory, 1, true, false, hero);
|
WandOfBlastWave.throwChar(enemy, trajectory, 1, true, false, hero);
|
||||||
} else {
|
} else if (!enemy.isAlive()) {
|
||||||
wep.onAbilityKill(hero, enemy);
|
wep.onAbilityKill(hero, enemy);
|
||||||
}
|
}
|
||||||
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
|
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);
|
||||||
|
|||||||
Reference in New Issue
Block a user