From 534461958a3ab63a36637c1c3bc1849306719aab Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 1 Jun 2025 11:57:06 -0400 Subject: [PATCH] v3.1.0: fixed sad ghost rarely spawning in non-open spaces --- .../shatteredpixeldungeon/actors/mobs/npcs/Ghost.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Ghost.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Ghost.java index abca9c21c..9f08c8438 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Ghost.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/npcs/Ghost.java @@ -306,7 +306,7 @@ public class Ghost extends NPC { Ghost ghost = new Ghost(); do { ghost.pos = level.pointToCell(room.random()); - } while (ghost.pos == -1 || level.solid[ghost.pos] || ghost.pos == level.exit()); + } while (ghost.pos == -1 || level.solid[ghost.pos] || !level.openSpace[ghost.pos] || ghost.pos == level.exit()); level.mobs.add( ghost ); spawned = true;