From 201685449cbbe19ae90edd178febf0e8a0e6e3ba Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 3 Jan 2024 23:21:01 +0100 Subject: fuzzer fix --- rules.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 8e65a20..e11c5e2 100644 --- a/rules.js +++ b/rules.js @@ -16,7 +16,7 @@ function find_card(s, n) { return ix } -for (let c of data.cards) for (let a of c.actions) console.log(a.type + ":", a.effect) +// 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) } @@ -1982,7 +1982,7 @@ function can_take_action(c, a, ix) { } if (a.type === "Bombard" || a.type === "Attack" || a.type === "Command") { - if (data.cards[c].special) + if (data.cards[c].special > 0) return check_cube_requirement(c, a.requirement) else return check_dice_requirement(c, a.requirement, false) -- cgit v1.2.3