v0.8.2: fixed specific cases where locked floor wasn't cleared

This commit is contained in:
Evan Debenham 2020-07-24 20:29:55 -04:00
parent 42a51304a9
commit a3455335f4
2 changed files with 4 additions and 0 deletions

View File

@ -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();
}
}
}

View File

@ -206,6 +206,7 @@ public class NewHallsBossLevel extends Level {
@Override
public void unseal() {
super.unseal();
set( entrance, Terrain.ENTRANCE );
GameScene.updateMap( entrance );