v2.1.0: fixed some effects resolving before return beacon teleports
This commit is contained in:
+3
-2
@@ -142,7 +142,9 @@ public class BeaconOfReturning extends Spell {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ScrollOfTeleportation.teleportToLocation(hero, returnPos)){
|
if (ScrollOfTeleportation.teleportToLocation(hero, returnPos)){
|
||||||
|
hero.spendAndNext( 1f );
|
||||||
|
} else {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -161,7 +163,6 @@ public class BeaconOfReturning extends Spell {
|
|||||||
InterlevelScene.returnPos = returnPos;
|
InterlevelScene.returnPos = returnPos;
|
||||||
Game.switchScene( InterlevelScene.class );
|
Game.switchScene( InterlevelScene.class );
|
||||||
}
|
}
|
||||||
hero.spendAndNext( 1f );
|
|
||||||
detach(hero.belongings.backpack);
|
detach(hero.belongings.backpack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user