v0.6.2: fixed a freeze issue caused by yog's burning fist

This commit is contained in:
Evan Debenham 2017-09-30 23:29:09 -04:00
parent 26ec69ae9a
commit ac8a552202

View File

@ -315,7 +315,7 @@ public class Yog extends Mob {
}
@Override
public boolean doAttack( Char enemy ) {
public boolean attack( Char enemy ) {
if (!Dungeon.level.adjacent( pos, enemy.pos )) {
spend( attackDelay() );
@ -340,7 +340,7 @@ public class Yog extends Mob {
return false;
}
} else {
return super.doAttack( enemy );
return super.attack( enemy );
}
}