From 7f28dcd1d7048fee42584326952d3e6850137025 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 2 Oct 2023 14:49:06 -0400 Subject: [PATCH] v2.2.0: fixed crystal spire moving immovable chars --- .../shatteredpixeldungeon/actors/mobs/CrystalSpire.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/CrystalSpire.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/CrystalSpire.java index 52cad8bc3..eff4bba80 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/CrystalSpire.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/CrystalSpire.java @@ -147,7 +147,7 @@ public class CrystalSpire extends Mob { movePos = i+j; } } - } else { + } else if (!Char.hasProp(ch, Property.IMMOVABLE)) { for (int j : PathFinder.NEIGHBOURS8){ if (!Dungeon.level.solid[i+j] && Actor.findChar(i+j) == null && Dungeon.level.trueDistance(i+j, pos) > Dungeon.level.trueDistance(movePos, pos)){