From 175a344fb548bf791144990abb85b047070dccec Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 7 Oct 2024 14:03:17 -0400 Subject: [PATCH] v2.5.4: fixed beacon of returning placing hero into closed doors --- .../items/scrolls/ScrollOfTeleportation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTeleportation.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTeleportation.java index b59c8eeee..a44aeca03 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTeleportation.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/scrolls/ScrollOfTeleportation.java @@ -302,12 +302,14 @@ public class ScrollOfTeleportation extends Scroll { } } - //just plays the VFX for teleporting, without any position changes + //just plays the VFX for teleporting, without any position changes, does re-press cells though public static void appearVFX( Char ch ){ if (Dungeon.level.heroFOV[ch.pos]){ Sample.INSTANCE.play(Assets.Sounds.TELEPORT); } + Dungeon.level.occupyCell(ch); + if (ch.invisible == 0) { ch.sprite.alpha( 0 ); ch.sprite.parent.add( new AlphaTweener( ch.sprite, 1, 0.4f ) );