Prevent monsters killing you after you teleported

This commit is contained in:
Eevee (Evelyn Woods) 2021-05-07 22:39:54 -06:00
parent b7e352a4a3
commit 642c977df3

View File

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