From e8cb95a60bea3b46b5ec477981322bb2bffef658 Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Tue, 11 May 2021 17:39:19 -0600 Subject: [PATCH] Fix double-ejecting from traps in Lynx --- js/tiletypes.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/js/tiletypes.js b/js/tiletypes.js index fb8868c..8b7bc64 100644 --- a/js/tiletypes.js +++ b/js/tiletypes.js @@ -1522,13 +1522,8 @@ const TILE_TYPES = { level._set_tile_prop(me, 'presses', 0); } }, - on_arrive(me, level, other) { - // Lynx (not cc2): open traps immediately eject their contents on arrival, if possible - if (level.compat.traps_like_lynx) { - level.attempt_out_of_turn_step(other, other.direction); - } - }, on_stand(me, level, other) { + // Lynx: open traps eject their contents at the end of each tic if (level.compat.traps_like_lynx) { level.attempt_out_of_turn_step(other, other.direction); }