diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM300.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM300.java index f90ce0702..034dbd86b 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM300.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM300.java @@ -319,14 +319,14 @@ public class DM300 extends Mob { if (travelling) PixelScene.shake( supercharged ? 3 : 1, 0.25f ); - if (Dungeon.level.map[step] == Terrain.INACTIVE_TRAP && state == HUNTING) { + if (Dungeon.level.map[pos] == Terrain.INACTIVE_TRAP && state == HUNTING) { //don't gain energy from cells that are energized if (CavesBossLevel.PylonEnergy.volumeAt(pos, CavesBossLevel.PylonEnergy.class) > 0){ return; } - if (Dungeon.level.heroFOV[step]) { + if (Dungeon.level.heroFOV[pos]) { if (buff(Barrier.class) == null) { GLog.w(Messages.get(this, "shield")); }