diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-18 00:53:39 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | 482a7d3b0f778ff66068011cbba369d113375e7b (patch) | |
tree | ffaba62e0cf13a2ec66c54458b00b0356aa8797a | |
parent | 79edc30c38d3561101e5cb56e35f56c43f7ad4d4 (diff) | |
download | table-battles-482a7d3b0f778ff66068011cbba369d113375e7b.tar.gz |
Simplify Hohenfriedberg command actions.
-rw-r--r-- | rules.js | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -2521,11 +2521,6 @@ function find_first_target_of_command(c, a) { return game.reserve[1] return -1 } - if (c === S44_FREDERICK_II) { - for (let t of card_has_rule(c, "command_sequence")) - if (is_card_in_reserve(t)) - return t - } } if (!a.target_list) @@ -2542,11 +2537,8 @@ function find_first_target_of_command(c, a) { function find_all_targets_of_command(c, a) { if (game.scenario === S44_HOHENFRIEDBERG) { - if (c === S44_CHARLES) { - return game.reserve[1].slice() - } if (c === S44_FREDERICK_II) { - for (let t of card_has_rule(S44_FREDERICK_II, "command_sequence")) + for (let t of a.target_list) if (is_card_in_reserve(t)) return [ t ] } |