v0.4.2: fixed an odd interation between tengu and resting
This commit is contained in:
parent
aeb699ec1b
commit
18cc801eb2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user