diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java index 9e0cd16cc..aca6d54a4 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/NewPrisonBossLevel.java @@ -338,6 +338,12 @@ public class NewPrisonBossLevel extends Level { } addVisuals(); //this also resets existing visuals traps.clear(); + + for (CustomTilemap t : customTiles){ + if (t instanceof FadingTraps){ + ((FadingTraps) t).remove(); + } + } GameScene.resetMap(); Dungeon.observe(); @@ -546,10 +552,6 @@ public class NewPrisonBossLevel extends Level { traps.clear(); Painter.fill(this, tenguCell, 1, Terrain.EMPTY); buildFlagMaps(); - - } - - public void placeTrapsInTenguCell(float fill){ for (CustomTilemap vis : customTiles){ if (vis instanceof FadingTraps){ @@ -557,6 +559,10 @@ public class NewPrisonBossLevel extends Level { } } + } + + public void placeTrapsInTenguCell(float fill){ + Point tenguPoint = cellToPoint(tengu.pos); Point heroPoint = cellToPoint(Dungeon.hero.pos);