From 8b971725579d69a553ca587dca3bff8c939e6a2e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 28 May 2019 16:33:15 -0400 Subject: [PATCH] v0.7.3b: fixed further cases where thrown weapons would be lost when killing tengu --- .../shatteredpixeldungeon/actors/mobs/Tengu.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 0849e99d3..2162651cc 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 @@ -108,7 +108,20 @@ public class Tengu extends Mob { //phase 2 of the fight is over if (HP == 0 && state == PrisonBossLevel.State.FIGHT_ARENA) { - ((PrisonBossLevel)Dungeon.level).progress(); + //let full attack action complete first + Actor.add(new Actor() { + + { + actPriority = VFX_PRIO; + } + + @Override + protected boolean act() { + Actor.remove(this); + ((PrisonBossLevel)Dungeon.level).progress(); + return true; + } + }); return; }