diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-02-27 12:55:10 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-02-27 12:55:10 +0100 |
commit | c88062f639e0df2f3a88064f553d25ec2f1b45b0 (patch) | |
tree | 68cdd1b0d70f309683c402d710ddecbf0e5c1e20 | |
parent | b514d08712dd7ed9b0c12f06ed6eaf1e99230e3c (diff) | |
download | red-flag-over-paris-c88062f639e0df2f3a88064f553d25ec2f1b45b0.tar.gz |
Don't draw card when strength is 3 after spending OP.
-rw-r--r-- | rules.js | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1802,21 +1802,27 @@ function attempt_remove_piece(extra) { clear_undo() let p = game.who let s = game.pieces[p] - let c = draw_strategy_card() let str = military_strength(s) + extra - let ops = card_ops[c] - logi("Drew C" + c) - logi("Strength " + str + " vs " + ops) - if (str >= ops) { + if (str >= 3) { + logi("Success") remove_piece(p) update_presence_and_control() - logi("Success") } else { - logi("Failure") + let c = draw_strategy_card() + let ops = card_ops[c] + logi("Drew C" + c) + logi("Strength " + str + " vs " + ops) + if (str >= ops) { + remove_piece(p) + update_presence_and_control() + logi("Success") + } else { + logi("Failure") + } + if (game.censorship) + game.discard.unshift(c) } game.who = -1 - if (game.censorship) - game.discard.unshift(c) resume_operations_remove() } |