v0.9.1: fixed hunting mobs taking a second turn when enemy is null
This commit is contained in:
parent
2b6de19995
commit
52388f2d23
|
@ -906,8 +906,10 @@ public abstract class Mob extends Char {
|
|||
if (enemyInFOV) {
|
||||
target = enemy.pos;
|
||||
} else if (enemy == null) {
|
||||
sprite.showLost();
|
||||
state = WANDERING;
|
||||
target = Dungeon.level.randomDestination( Mob.this );
|
||||
spend( TICK );
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user