diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java index f647332ee..c6dd3dd11 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -707,8 +707,12 @@ public abstract class Level implements Bundlable { public void press( int cell, Char ch ) { - if (pit[cell] && ch == Dungeon.hero) { - Chasm.heroFall( cell ); + if (ch != null && pit[cell] && !ch.flying) { + if (ch == Dungeon.hero) { + Chasm.heroFall(cell); + } else if (ch instanceof Mob) { + Chasm.mobFall( (Mob)ch ); + } return; }