From 27740426f4f87996387c29312b46dd82407f0a2f Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 5 Oct 2022 13:19:38 -0400 Subject: [PATCH] v1.4.1: fixed tengu jumping before effects like thrown stones resolve --- .../actors/mobs/Tengu.java | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java index 43a55a00a..4aca48abe 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java @@ -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; } }