From 77819183723b0c359577135b81318f8c79904504 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 3 Apr 2023 16:11:10 -0400 Subject: [PATCH] v2.0.2: fixed actTransition not checking if a floor is locked --- .../shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java index 83c99455b..ebdfb9c5f 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/Hero.java @@ -1151,7 +1151,7 @@ public class Hero extends Char { Camera.main.shake(1, 1f); ready(); return false; - } else if (transition != null && transition.inside(pos)) { + } else if (!Dungeon.level.locked && transition != null && transition.inside(pos)) { if (transition.type == LevelTransition.Type.SURFACE){ if (belongings.getItem( Amulet.class ) == null) {