diff options
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |