v2.5.0: fixed errors with DM-300 and vertigo

This commit is contained in:
Evan Debenham
2024-08-20 15:51:00 -04:00
parent c450b2c1ae
commit d24be97d11

View File

@@ -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"));
}