From 24a0043e272dafe097cb13386fd607c7d9d68088 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 8 Jun 2022 01:36:35 +0200 Subject: Fix instability check when 2 dominance checks appear at once. --- rules.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index ac6fda0..605b560 100644 --- a/rules.js +++ b/rules.js @@ -2444,9 +2444,11 @@ function goto_refill_market() { if (game.market_cards[row][col] === 0) { let c = game.deck.pop() game.market_cards[row][col] = c - if (instability > 0 && is_dominance_check(c)) { - game.state = 'instability' - return + if (is_dominance_check(c)) { + if (++instability > 1) { + game.state = 'instability' + return + } } } } -- cgit v1.2.3