From 39808793f0ab348e56af33fd7f9782b19b45276a Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 27 Aug 2024 15:46:11 -0400 Subject: [PATCH] v2.5.0: fixed challenge arena briefly persisting between floors --- .../shatteredpixel/shatteredpixeldungeon/levels/Level.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 a8d10e9f3..596a0e347 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/Level.java @@ -68,6 +68,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.TimekeepersHourg import com.shatteredpixel.shatteredpixeldungeon.items.bombs.Bomb; import com.shatteredpixel.shatteredpixeldungeon.items.potions.PotionOfStrength; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfUpgrade; +import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.exotic.ScrollOfChallenge; import com.shatteredpixel.shatteredpixeldungeon.items.stones.StoneOfEnchantment; import com.shatteredpixel.shatteredpixeldungeon.items.stones.StoneOfIntuition; import com.shatteredpixel.shatteredpixeldungeon.items.trinkets.DimensionalSundial; @@ -580,9 +581,11 @@ public abstract class Level implements Bundlable { Swiftthistle.TimeBubble timeBubble = Dungeon.hero.buff(Swiftthistle.TimeBubble.class); if (timeBubble != null) timeBubble.disarmPresses(); - //iron stomach does not persist through chasm falling + //iron stomach and challenge arena do not persist between floors Talent.WarriorFoodImmunity foodImmune = Dungeon.hero.buff(Talent.WarriorFoodImmunity.class); if (foodImmune != null) foodImmune.detach(); + ScrollOfChallenge.ChallengeArena arena = Dungeon.hero.buff(ScrollOfChallenge.ChallengeArena.class); + if (arena != null) arena.detach(); //spend the hero's partial turns, so the hero cannot take partial turns between floors Dungeon.hero.spendToWhole();