diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java index dfea24585..668c09fc1 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/RegularLevel.java @@ -200,6 +200,7 @@ public abstract class RegularLevel extends Level { protected boolean assignRoomType() { int specialRooms = 0; + boolean pitMade = false; for (Room r : rooms) { if (r.type == Type.NULL && @@ -212,7 +213,7 @@ public abstract class RegularLevel extends Level { if (pitRoomNeeded) { r.type = Type.PIT; - pitRoomNeeded = false; + pitMade = true; specials.remove( Type.ARMORY ); specials.remove( Type.CRYPT ); @@ -262,6 +263,8 @@ public abstract class RegularLevel extends Level { } } } + + if (pitRoomNeeded && !pitMade) return false; int count = 0; for (Room r : rooms) {