diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-04-13 22:40:02 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-04-13 22:47:06 +0200 |
commit | fc2d86ac2f7364161777114109cd5971175d1190 (patch) | |
tree | 2afedbd49e7800277da6d5ec12f831952681e3b9 /rules.js | |
parent | 0fe3a68d85a9948ebe42345584c3aaa9137ebac4 (diff) | |
download | plantagenet-fc2d86ac2f7364161777114109cd5971175d1190.tar.gz |
Add missing argument to is_card_in_scenario.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1037,7 +1037,7 @@ function remove_card_scenario(c) { //TODO: Remove card in scenario } -function is_card_in_scenario() { +function is_card_in_scenario(_c) { // TODO: Cards setup return true } @@ -1047,7 +1047,7 @@ function list_deck() { let first_card = game.active === YORK ? first_york_card : first_lancaster_card let last_card = game.active === YORK ? last_york_card : last_lancaster_card for (let c = first_card; c <= last_card; ++c) - if (!is_card_in_use(c) && is_card_in_scenario()) + if (!is_card_in_use(c) && is_card_in_scenario(c)) deck.push(c) return deck } |