From e1b10f53ffe0b444b977f2e2e53c01fa8dcd79c2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 28 Jul 2022 21:07:00 +0200 Subject: Fix off-by-one error in waive offers. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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') }, -- cgit v1.2.3