From 642c977df35cb280f6baa7237d3856c0dd3e8948 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Fri, 7 May 2021 22:39:54 -0600 Subject: [PATCH] Prevent monsters killing you after you teleported --- js/game.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/game.js b/js/game.js index 66d89b9..ad483cf 100644 --- a/js/game.js +++ b/js/game.js @@ -2092,6 +2092,8 @@ export class Level extends LevelInterface { // Now physically move the actor, but their movement waits until next decision phase this.remove_tile(actor, true); this.add_tile(actor, dest.cell); + // Erase this to prevent tail-biting through a teleport + this._set_tile_prop(actor, 'previous_cell', null); } remember_player_move(direction) {