diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-05-03 14:21:21 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | d2179a12816725f836f36ef9fcd19165c3f953de (patch) | |
tree | 7e5ab0075a0888e117aa8c28f5ba7ddb0e92919e /rules.js | |
parent | 640d10a281b619a34758232d1ea16df0c87e5bce (diff) | |
download | wilderness-war-d2179a12816725f836f36ef9fcd19165c3f953de.tar.gz |
Fix passing for season/card with retroactive foul weather.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -3416,12 +3416,20 @@ states.foul_weather = { resume_move(); }, pass_fw_season() { + let current = game.active; states.foul_weather.pass(); - enemy_player.pass_fw = 2; + if (current === BRITAIN) + game.british.pass_fw = 2; + else + game.french.pass_fw = 2; }, pass_fw_action() { + let current = game.active; states.foul_weather.pass(); - enemy_player.pass_fw = 1; + if (current === BRITAIN) + game.british.pass_fw = 1; + else + game.french.pass_fw = 1; }, pass() { if (game.options.retroactive) { |