summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-12-16 03:40:17 +0100
committerTor Andersson <tor@ccxvii.net>2024-01-08 16:36:48 +0100
commit32225c7165d9bbe1ef2c68aad45e3c6c9fd12dc1 (patch)
treec495093531b2ea138436cf46808bf029c2a556b6
parent511f63e26b2d150396d917bef2cfbfc32593e81c (diff)
downloadtable-battles-32225c7165d9bbe1ef2c68aad45e3c6c9fd12dc1.tar.gz
x
-rw-r--r--rules.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index bd4138e..29cf2a2 100644
--- a/rules.js
+++ b/rules.js
@@ -22,6 +22,7 @@ function find_card(s, n) {
// for (let c of data.cards) for (let a of c.actions) console.log(a.type, a.effect)
// for (let c of data.cards) console.log(c.dice)
+for (let c of data.cards) for (let a of c.actions) { if (a.type === "Counterattack") console.log(c.number, a.type, a.sequence, a.target) }
const P1 = "First"
const P2 = "Second"