summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-06 20:58:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-06 20:58:51 +0200
commit5b3f9cc0415fab0b7458f5bd1a54f74ba9d84e82 (patch)
tree07053ce7e81318b54746dedf84c06d87c19ed179
parentdaef2be2f11d1fdf264610426bbcadc3ffdd552a (diff)
downloadandean-abyss-5b3f9cc0415fab0b7458f5bd1a54f74ba9d84e82.tar.gz
Fix cylinder movement when taking extra limited op.
-rw-r--r--rules.js18
1 files 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() {