v2.5.1: fixed Goo and DM-300 benefitting from terrain while levitating

This commit is contained in:
Evan Debenham
2024-09-16 11:20:17 -04:00
parent 795ed29a9d
commit ca1a8a50f2
2 changed files with 2 additions and 2 deletions

View File

@@ -323,7 +323,7 @@ public class DM300 extends Mob {
if (travelling) PixelScene.shake( supercharged ? 3 : 1, 0.25f );
if (Dungeon.level.map[pos] == Terrain.INACTIVE_TRAP && state == HUNTING) {
if (!flying && 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){

View File

@@ -106,7 +106,7 @@ public class Goo extends Mob {
sprite.idle();
}
if (Dungeon.level.water[pos] && HP < HT) {
if (!flying && Dungeon.level.water[pos] && HP < HT) {
HP += healInc;
Statistics.qualifiedForBossChallengeBadge = false;