diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-05-06 20:58:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-05-06 20:58:51 +0200 |
commit | 5b3f9cc0415fab0b7458f5bd1a54f74ba9d84e82 (patch) | |
tree | 07053ce7e81318b54746dedf84c06d87c19ed179 | |
parent | daef2be2f11d1fdf264610426bbcadc3ffdd552a (diff) | |
download | andean-abyss-5b3f9cc0415fab0b7458f5bd1a54f74ba9d84e82.tar.gz |
Fix cylinder movement when taking extra limited op.
-rw-r--r-- | rules.js | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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() { |