From 482a7d3b0f778ff66068011cbba369d113375e7b Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 18 Dec 2023 00:53:39 +0100 Subject: Simplify Hohenfriedberg command actions. --- rules.js | 10 +--------- 1 file changed, 1 insertion(+), 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 ] } -- cgit v1.2.3