v0.3.3: fixed a bug with Tengu's blink ability

This commit is contained in:
Evan Debenham 2015-12-16 02:50:13 -05:00
parent a210fe945c
commit d2b2771f32

View File

@ -172,7 +172,7 @@ public class Tengu extends Mob {
do {
newPos = Random.Int(Level.LENGTH);
} while (
!Level.fieldOfView[newPos] ||
!(Dungeon.level.map[newPos] == Terrain.INACTIVE_TRAP || Dungeon.level.map[newPos] == Terrain.TRAP)||
Level.solid[newPos] ||
Level.adjacent(newPos, enemy.pos) ||
Actor.findChar(newPos) != null);