From d24be97d11136ef4cb6bed12c4a947d5cb92838a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 20 Aug 2024 15:51:00 -0400 Subject: [PATCH] v2.5.0: fixed errors with DM-300 and vertigo --- .../shatteredpixeldungeon/actors/mobs/DM300.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")); }