From 76ff5f0210b09b56e4754c608b0749c416b38204 Mon Sep 17 00:00:00 2001
From: iainp5 <iain.pearce.ip@gmail.com>
Date: Fri, 22 Nov 2024 15:50:37 +0000
Subject: Add tied game if both players have held scoring cards

---
 rules.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'rules.js')

diff --git a/rules.js b/rules.js
index c688246..2bdbd6c 100644
--- a/rules.js
+++ b/rules.js
@@ -1584,7 +1584,7 @@ states.end_turn_4_5_4 = {
 		
 		if (dem_has_scoring_card && com_has_scoring_card) {
 			log('Both players have held scoring cards')
-			game.state = 'game_end_tie'
+			goto_game_over('', `The game is tied due to held scoring cards!`)
 		}
 		else if (dem_has_scoring_card) {
 			log('Democrat player has a held scoring card')
-- 
cgit v1.2.3