From d2179a12816725f836f36ef9fcd19165c3f953de Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 3 May 2022 14:21:21 +0200 Subject: Fix passing for season/card with retroactive foul weather. --- rules.js | 12 ++++++++++-- 1 file 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) { -- cgit v1.2.3