From 18cc801eb20df6a044b6af331d08af6afcebc314 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 4 Sep 2016 05:23:46 -0400 Subject: [PATCH] v0.4.2: fixed an odd interation between tengu and resting --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Tengu.java | 2 ++ 1 file changed, 2 insertions(+) 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 212c71d0f..066755451 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 @@ -156,6 +156,8 @@ public class Tengu extends Mob { //tengu's attack is always visible @Override protected boolean doAttack(Char enemy) { + if (enemy == Dungeon.hero) + Dungeon.hero.resting = false; sprite.attack( enemy.pos ); spend( attackDelay() ); return true;