summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-18 00:53:39 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit482a7d3b0f778ff66068011cbba369d113375e7b (patch)
treeffaba62e0cf13a2ec66c54458b00b0356aa8797a
parent79edc30c38d3561101e5cb56e35f56c43f7ad4d4 (diff)
downloadtable-battles-482a7d3b0f778ff66068011cbba369d113375e7b.tar.gz
Simplify Hohenfriedberg command actions.
-rw-r--r--rules.js10
1 files changed, 1 insertions, 9 deletions
diff --git a/rules.js b/rules.js
index d3e49aa..0eecc7f 100644
--- a/rules.js
+++ b/rules.js
@@ -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 ]
}