summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-04 09:58:59 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-04 09:58:59 +0100
commiteec2f83dfbe003bf534d534fd9f818b82a539c89 (patch)
tree773b3b699d15002b19564bebfec27b8d0b4516a3
parent114ef0a3f956ad9921e21c4507effdd9dec51266 (diff)
downloadvotes-for-women-eec2f83dfbe003bf534d534fd9f818b82a539c89.tar.gz
fix final voting reroll logic
-rw-r--r--rules.js6
1 files 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() {