diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollGeomancer.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollGeomancer.java index a8c1b08aa..42cc06a97 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollGeomancer.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/GnollGeomancer.java @@ -806,7 +806,9 @@ public class GnollGeomancer extends Mob { @Override public void affectCell(int cell) { - if (Dungeon.level.map[cell] != Terrain.EMPTY_SP && Random.Int(3) == 0) { + if (Dungeon.level.map[cell] != Terrain.EMPTY_SP + && !Dungeon.level.adjacent(cell, Dungeon.level.entrance()) + && Random.Int(3) == 0) { Level.set(cell, Terrain.MINE_BOULDER); GameScene.updateMap(cell); } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index f9f4a2465..1bafbcc10 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -512,7 +512,9 @@ public abstract class Level implements Bundlable { for (LevelTransition transition : transitions){ //if we don't specify a type, prefer to return any entrance if (type == null && - (transition.type == LevelTransition.Type.REGULAR_ENTRANCE || transition.type == LevelTransition.Type.SURFACE)){ + (transition.type == LevelTransition.Type.REGULAR_ENTRANCE + || transition.type == LevelTransition.Type.BRANCH_ENTRANCE + || transition.type == LevelTransition.Type.SURFACE)){ return transition; } else if (transition.type == type){ return transition;