diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-11-25 18:59:37 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-11-25 18:59:37 +0100 |
commit | c5e0382313e26b5dc348cc08a9225bec63b0b5a2 (patch) | |
tree | 7be1170bca50ac73ca436ff0b4051830e22e3019 /rules.js | |
parent | f6ff8ae9365d20e2ccd196dc615a6015343db037 (diff) | |
download | table-battles-master.tar.gz |
If Lawers Retires before Montrose has Commanded any formations,
the Irish Left and Right immediately come out of reserve.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -324,6 +324,9 @@ const S34_TULLIBARDINE = find_card(34, "Tullibardine") const S35_AULDEARN = find_scenario(35) const S35_MONTROSE = find_card(35, "Montrose") const S35_GORDON = find_card(35, "Gordon") +const S35_LAWERS = find_card(35, "Campbell of Lawers") +const S35_IRISH_LEFT = find_card(35, "Irish Left") +const S35_IRISH_RIGHT = find_card(35, "Irish Right") const S37_INKERMAN = find_scenario(37) const S37_PAULOFFS_LEFT = find_card(37, "Pauloff's Left") @@ -2279,6 +2282,11 @@ states.action = { } } + if (game.scenario === S35_AULDEARN) { + if (c === S35_LAWERS) + game.s35_retired_lawers = 1 + } + retire_card(c) end_action_phase() }, @@ -3854,6 +3862,14 @@ function should_enter_reserve(c) { } } + if (game.scenario === S35_AULDEARN) { + if (c === S35_IRISH_LEFT || c === S35_IRISH_RIGHT) { + // Lawers retired and Montrose hasn't Commanded any reserves + if (game.s35_retired_lawers && is_card_in_reserve(S35_GORDON)) + return true + } + } + return false } |