v2.2.1: fixed dragon kick stun applying to down ghouls

Also allowed kick to visually knockback dead targets
This commit is contained in:
Evan Debenham
2023-10-22 15:54:17 -04:00
parent 9101edc0ac
commit e0d703dc58

View File

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