From a3455335f47e37a3ab7d13ee1838089ca1704e3d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 24 Jul 2020 20:29:55 -0400 Subject: [PATCH] v0.8.2: fixed specific cases where locked floor wasn't cleared --- .../com/shatteredpixel/shatteredpixeldungeon/levels/Level.java | 3 +++ .../shatteredpixeldungeon/levels/NewHallsBossLevel.java | 1 + 2 files changed, 4 insertions(+) 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 5223731cc..f5f85bc29 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -463,6 +463,9 @@ public abstract class Level implements Bundlable { public void unseal(){ if (locked) { locked = false; + if (Dungeon.hero.buff(LockedFloor.class) != null){ + Dungeon.hero.buff(LockedFloor.class).detach(); + } } } diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewHallsBossLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewHallsBossLevel.java index d51e16e39..97dfad006 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewHallsBossLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewHallsBossLevel.java @@ -206,6 +206,7 @@ public class NewHallsBossLevel extends Level { @Override public void unseal() { + super.unseal(); set( entrance, Terrain.ENTRANCE ); GameScene.updateMap( entrance );