v2.3.0: fixed inter-floor teleports working in mining level
This commit is contained in:
@@ -441,7 +441,9 @@ public class Dungeon {
|
||||
}
|
||||
|
||||
public static boolean interfloorTeleportAllowed(){
|
||||
if (Dungeon.level.locked || (Dungeon.hero != null && Dungeon.hero.belongings.getItem(Amulet.class) != null)){
|
||||
if (Dungeon.level.locked
|
||||
|| Dungeon.level instanceof MiningLevel
|
||||
|| (Dungeon.hero != null && Dungeon.hero.belongings.getItem(Amulet.class) != null)){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user