v0.2.3e: corrected error in new pirahna logic
This commit is contained in:
parent
a1754cd68a
commit
72cbc3440f
|
@ -59,6 +59,7 @@ public class Piranha extends Mob {
|
|||
} else {
|
||||
//this causes pirahna to move away when a door is closed on them.
|
||||
Dungeon.level.updateFieldOfView( this );
|
||||
enemy = chooseEnemy();
|
||||
if (state == this.HUNTING && !(enemy.isAlive() && Level.fieldOfView[enemy.pos] && enemy.invisible <= 0)){
|
||||
state = this.WANDERING;
|
||||
int oldPos = pos;
|
||||
|
|
Loading…
Reference in New Issue
Block a user