v2.5.4: fixed beacon of returning placing hero into closed doors

This commit is contained in:
Evan Debenham
2024-10-07 14:03:17 -04:00
parent ad856bdea3
commit 175a344fb5

View File

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