From 72cbc3440f34a7047e1722f995e7ef5d0d30bb93 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 18 Jan 2015 01:45:45 -0500 Subject: [PATCH] v0.2.3e: corrected error in new pirahna logic --- .../shatteredpixeldungeon/actors/mobs/Piranha.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java index 9c252a09f..1d797ad45 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Piranha.java @@ -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;