summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-16 17:06:24 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit3a31a961bc649e7a0aed12b94e564f5136e840a5 (patch)
tree667a71a3ed4aabb4ff015df3d7f08742a2e7e805 /tools
parent56998842f45f473c31e41cb4b1a06f9f2c82377b (diff)
downloadtable-battles-3a31a961bc649e7a0aed12b94e564f5136e840a5.tar.gz
gendata
Diffstat (limited to 'tools')
-rw-r--r--tools/gendata.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gendata.js b/tools/gendata.js
index 0a8ab7c..370c9e0 100644
--- a/tools/gendata.js
+++ b/tools/gendata.js
@@ -362,7 +362,9 @@ function process_card(c, ix) {
a.target_list = a.target_list.filter(x => x !== ix) // never absorb for self
}
- if (/, /.test(a.target) || !a.target_list || a.target_list.length < 2)
+ if (a.type === "Screen")
+ a.choice = 1
+ else if (/, /.test(a.target) || !a.target_list || a.target_list.length < 2)
a.choice = 0
else
a.choice = 1