From 03ad139ff36e02e26ed1c039323c149adf4139e7 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 22 May 2023 17:32:49 -0400 Subject: [PATCH] v2.1.0: fixed some effects resolving before return beacon teleports --- .../items/spells/BeaconOfReturning.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java index 39032546e..6e7dd0186 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/spells/BeaconOfReturning.java @@ -142,7 +142,9 @@ public class BeaconOfReturning extends Spell { } } - if (!ScrollOfTeleportation.teleportToLocation(hero, returnPos)){ + if (ScrollOfTeleportation.teleportToLocation(hero, returnPos)){ + hero.spendAndNext( 1f ); + } else { return; } @@ -161,7 +163,6 @@ public class BeaconOfReturning extends Spell { InterlevelScene.returnPos = returnPos; Game.switchScene( InterlevelScene.class ); } - hero.spendAndNext( 1f ); detach(hero.belongings.backpack); }