summaryrefslogtreecommitdiff
path: root/tools/gendata.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-14 16:00:33 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit9a30ef0fc5a5a6fb45e1dc9d72cfa762fe8285b5 (patch)
tree07824ecd26d75bea7262b763971932919f44e51b /tools/gendata.js
parent0b0448e15af131ef263d2f9ee903e5e48fa41c89 (diff)
downloadtable-battles-9a30ef0fc5a5a6fb45e1dc9d72cfa762fe8285b5.tar.gz
WIP Hothenfriedberg
Diffstat (limited to 'tools/gendata.js')
-rw-r--r--tools/gendata.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 1df67b1..bd1e799 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -308,6 +308,10 @@ function process_card(c, ix) {
a.target_list = null
else
a.target_list = tname.split(/, | OR | or | and /).map(name => find_card(c.scenario, name))
+
+ // Hothenfriedberg invisible charles last target in list!
+ if (c.number === "267A" || c.number === "268A" || c.number === "269A")
+ a.target_list.push(find_card(c.scenario, "Charles"))
}
if (a.type === "Absorb")
a.target_list = a.target_list.filter(x => x !== ix) // never absorb for self