v2.2.0: fixed crystal spire moving immovable chars

This commit is contained in:
Evan Debenham
2023-10-02 14:49:06 -04:00
parent 5e6577c013
commit 7f28dcd1d7

View File

@@ -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)){