From eec2f83dfbe003bf534d534fd9f818b82a539c89 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:58:59 +0100 Subject: fix final voting reroll logic --- rules.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rules.js b/rules.js index 1384f7c..050a36a 100644 --- a/rules.js +++ b/rules.js @@ -1289,7 +1289,7 @@ function should_reroll() { const total = game.roll + game.drm const potential = game.dice + game.drm const opponent_total = game.opponent_roll + game.opponent_drm - const opponent_potential = game.opponent_dice = game.opponent_drm + const opponent_potential = game.opponent_dice + game.opponent_drm // not if your have already won, because they are broke and cant reroll if (!opponent_buttons() && (total > opponent_total || (player_wins_ties() && total === opponent_total))) return false @@ -1351,7 +1351,7 @@ function should_opponent_reroll() { return false const total = game.roll + game.drm const opponent_total = game.opponent_roll + game.opponent_drm - const opponent_potential = game.opponent_dice = game.opponent_drm + const opponent_potential = game.opponent_dice + game.opponent_drm // not if your have already won if (opponent_total > total || (player_wins_ties() && opponent_total === total)) return false @@ -1391,7 +1391,7 @@ states.final_voting_opponent = { const MISS_FEBB_WINS_THE_LAST_VOTE = find_card("Miss Febb Wins the Last Vote") function player_wins_ties() { - return game.active === OPP || game.persistent_ballot.includes(MISS_FEBB_WINS_THE_LAST_VOTE) + return (game.active === SUF) === game.persistent_ballot.includes(MISS_FEBB_WINS_THE_LAST_VOTE) } function goto_final_voting_result() { -- cgit v1.2.3