v0.2.3e: corrected error in new pirahna logic

This commit is contained in:
Evan Debenham 2015-01-18 01:45:45 -05:00
parent a1754cd68a
commit 72cbc3440f

View File

@ -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;