summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-03 14:21:21 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitd2179a12816725f836f36ef9fcd19165c3f953de (patch)
tree7e5ab0075a0888e117aa8c28f5ba7ddb0e92919e
parent640d10a281b619a34758232d1ea16df0c87e5bce (diff)
downloadwilderness-war-d2179a12816725f836f36ef9fcd19165c3f953de.tar.gz
Fix passing for season/card with retroactive foul weather.
-rw-r--r--rules.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 3d180cd..1d3301c 100644
--- a/rules.js
+++ b/rules.js
@@ -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) {