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
|
//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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user