From 5b3f9cc0415fab0b7458f5bd1a54f74ba9d84e82 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 6 May 2023 20:58:51 +0200 Subject: Fix cylinder movement when taking extra limited op. --- rules.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/rules.js b/rules.js index 92dbad7..c8b61cf 100644 --- a/rules.js +++ b/rules.js @@ -2409,14 +2409,16 @@ function did_option(e) { } function move_cylinder_to_operation() { - if (did_option(SOP_1ST_OP_ONLY)) - game.cylinder[game.current] = SOP_2ND_LIMOP - else if (did_option(SOP_1ST_OP_AND_SA)) - game.cylinder[game.current] = SOP_2ND_LIMOP_OR_EVENT - else if (did_option(SOP_1ST_EVENT)) - game.cylinder[game.current] = SOP_2ND_OP_AND_SA - else - game.cylinder[game.current] = SOP_1ST_OP_ONLY + if (game.cylinder[game.current] === ELIGIBLE) { + if (did_option(SOP_1ST_OP_ONLY)) + game.cylinder[game.current] = SOP_2ND_LIMOP + else if (did_option(SOP_1ST_OP_AND_SA)) + game.cylinder[game.current] = SOP_2ND_LIMOP_OR_EVENT + else if (did_option(SOP_1ST_EVENT)) + game.cylinder[game.current] = SOP_2ND_OP_AND_SA + else + game.cylinder[game.current] = SOP_1ST_OP_ONLY + } } function move_cylinder_to_special_activity() { -- cgit v1.2.3