v2.1.0: fixed some effects resolving before return beacon teleports

This commit is contained in:
Evan Debenham
2023-05-22 17:32:49 -04:00
parent 62e888129c
commit 03ad139ff3

View File

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