From 6217f64f131081ff9ccf6ec0a466a0318cb73696 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 26 Jul 2024 14:14:28 -0400 Subject: [PATCH] v2.5.0: fixed ghost questgiver rarely spawning into walls --- .../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 7340dd15a..c35d38182 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 || ghost.pos == level.exit()); + } while (ghost.pos == -1 || level.solid[ghost.pos] || ghost.pos == level.exit()); level.mobs.add( ghost ); spawned = true;