v1.4.1: fixed tengu jumping before effects like thrown stones resolve

This commit is contained in:
Evan Debenham
2022-10-05 13:19:38 -04:00
parent 4514995e9b
commit 27740426f4

View File

@@ -188,9 +188,23 @@ public class Tengu extends Mob {
((PrisonBossLevel)Dungeon.level).progress();
BossHealthBar.bleed(true);
//if tengu has lost a certain amount of hp, jump
//if tengu has lost a certain amount of hp, jump
} else if (beforeHitHP / hpBracket != HP / hpBracket) {
jump();
//let full attack action complete first
Actor.add(new Actor() {
{
actPriority = VFX_PRIO;
}
@Override
protected boolean act() {
Actor.remove(this);
jump();
return true;
}
});
return;
}
}