From c80af0852a2a0d34f26b25b61c42a56746c017ac Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 1 Oct 2019 22:33:33 -0400 Subject: [PATCH] v0.7.5: added a failsafe incase Tengu cannot use his shocker second --- .../shatteredpixeldungeon/actors/mobs/NewTengu.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/NewTengu.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/NewTengu.java index b1d26a443..2b17fbbb8 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/NewTengu.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/NewTengu.java @@ -470,6 +470,11 @@ public class NewTengu extends Mob { break; case SHOCKER_ABILITY: abilityUsed = throwShocker(NewTengu.this, enemy); + //if Tengu cannot use his shocker ability second, use fire instead. + if (abilitiesUsed == 1 && !abilityUsed){ + abilityToUse = FIRE_ABILITY; + abilityUsed = throwFire(NewTengu.this, enemy); + } break; } }