v0.4.2: fixed an odd interation between tengu and resting

This commit is contained in:
Evan Debenham 2016-09-04 05:23:46 -04:00
parent aeb699ec1b
commit 18cc801eb2

View File

@ -156,6 +156,8 @@ public class Tengu extends Mob {
//tengu's attack is always visible //tengu's attack is always visible
@Override @Override
protected boolean doAttack(Char enemy) { protected boolean doAttack(Char enemy) {
if (enemy == Dungeon.hero)
Dungeon.hero.resting = false;
sprite.attack( enemy.pos ); sprite.attack( enemy.pos );
spend( attackDelay() ); spend( attackDelay() );
return true; return true;