From ca1a8a50f2ae53e17ed70e15090526b01d474f65 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 16 Sep 2024 11:20:17 -0400 Subject: [PATCH] v2.5.1: fixed Goo and DM-300 benefitting from terrain while levitating --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/DM300.java | 2 +- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Goo.java | 2 +- 2 files 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 f2dc3ccfa..50d1b22ff 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 @@ -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){ diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Goo.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Goo.java index 34b847d4e..d9c9b880c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Goo.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Goo.java @@ -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;