diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-12-14 11:20:04 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-01-08 16:36:48 +0100 |
commit | fc17fd425e861c7c92c85f94e3483efc004d4868 (patch) | |
tree | 2320d63db63a415f3d9abfbb2bb5c5243a1a7db7 | |
parent | 0806d5c2dab3f0af175a1b9d4f91f07b65ebebc6 (diff) | |
download | table-battles-fc17fd425e861c7c92c85f94e3483efc004d4868.tar.gz |
no target_list for special commands
-rw-r--r-- | data.js | 12 | ||||
-rw-r--r-- | rules.js | 3 |
2 files changed, 7 insertions, 8 deletions
@@ -14071,9 +14071,7 @@ cards: [ "type": "Command", "requirement": "Two Pairs", "target": "The Fog Lifts...", - "target_list": [ - "The Fog" - ] + "target_list": null } ], "rule_text": "At the start of the battle, place three cubes below. When this Command action is used, remove the cubes in order from top to bottom, resolving the effect given.<ol><li>Soimonoff special text negated.<li>British Troops out of reserve.<li>French Troops out of reserve.</ol>" @@ -14435,9 +14433,7 @@ cards: [ "type": "Command", "requirement": "Two Pairs", "target": "Activate \"Retreat to Nivelles\"", - "target_list": [ - "Retreat to Nivelles" - ] + "target_list": null } ] }, @@ -16266,7 +16262,7 @@ cards: [ { "type": "Command", "target": "See Below", - "target_list": [] + "target_list": null } ], "rule_text": "Each Command action brings into play the next card in this sequence: Leopold's Right, Leopold's Center, Leopold's Left, Nassau, Zieten, Bayreuth Dragoons. <p>If at the start of your turn you have no Infantry or Cavalry cards in play, you lose.", @@ -16539,7 +16535,7 @@ cards: [ "type": "Command", "requirement": "Three Dice", "target": "See Below", - "target_list": [] + "target_list": null }, { "type": "Absorb", @@ -1780,6 +1780,9 @@ function find_first_target_of_command(c, a) { return S37_THE_FOG } + if (!a.target_list) + throw new Error("no rule for Command target: " + a.target) + for (let t of a.target_list) { if (is_card_in_reserve(t)) return t |