summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-13 16:57:47 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commita99e356ecc08b0718b7870a348b7c57ac16098b1 (patch)
treea1ff809ddee2c3331a08e1e75d91377c3a266c01 /tools
parent9297418c7f9e955fd22d1d91c350d0638e124af3 (diff)
downloadtable-battles-a99e356ecc08b0718b7870a348b7c57ac16098b1.tar.gz
Edgehill.
Diffstat (limited to 'tools')
-rw-r--r--tools/gendata.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 1b451c4..36b42cf 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -298,7 +298,8 @@ function process_card(c) {
if (c.pursuit) {
if (c.actions[0].type !== "Attack" && c.actions[0].type !== "Counterattack")
throw new Error("PURSUIT without Attack or Counterattack as first action")
- if (c.actions[0].target_list.length !== 1) throw new Error("PURSUIT with more than one target!")
+ if (c.actions[0].target_list.length !== 1)
+ throw new Error("PURSUIT with more than one target!")
c.pursuit = c.actions[0].target_list[0]
}
if (c.reserve)