From be198f1907af37bfa868d0d4b212b25a7b57bf10 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 9 Nov 2017 02:51:49 -0500 Subject: [PATCH] v0.6.2b: improved the error-resistance of mimic spawning logic --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java index 6f0f5c7ce..ad0f94c4d 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mimic.java @@ -113,7 +113,7 @@ public class Mimic extends Mob { public static Mimic spawnAt( int pos, List items ) { Char ch = Actor.findChar( pos ); - if (ch != null) { + if (ch != null || !Dungeon.level.passable[pos]) { ArrayList candidates = new ArrayList<>(); for (int n : PathFinder.NEIGHBOURS8) { int cell = pos + n;