summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-07-28 21:07:00 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commite1b10f53ffe0b444b977f2e2e53c01fa8dcd79c2 (patch)
treeb7959ccdc50784f29bf708bf3ac22a7a22d89b32
parent61b6fa09541a8cd00ea33bfd5a8059e99d56fbb3 (diff)
downloadpax-pamir-e1b10f53ffe0b444b977f2e2e53c01fa8dcd79c2.tar.gz
Fix off-by-one error in waive offers.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 3359a16..3678126 100644
--- a/rules.js
+++ b/rules.js
@@ -861,7 +861,7 @@ states.waive = {
view.prompt = `${player_names[game.phasing]} asks you to waive the bribe to play #${game.card}.`
let max_cost = Math.min(game.players[game.phasing].coins - game.reserve, game.count)
gen_action('waive')
- for (let i = 1; i < max_cost; ++i)
+ for (let i = 1; i <= max_cost; ++i)
gen_action('offer_' + i)
gen_action('refuse')
},