From 9e0886d2e90ef2f28afbcba7f09ab560c61d92e9 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 11 Feb 2025 19:32:34 +0100 Subject: fix game over trigger --- rules.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rules.js') diff --git a/rules.js b/rules.js index f2338ed..677ff2a 100644 --- a/rules.js +++ b/rules.js @@ -3306,6 +3306,7 @@ function goto_scoring_phase() { if (is_persian_control(ATHENAI) && is_persian_control(SPARTA)) { game.victory = "Persia won by controlling Athenai and Sparta!"; game.state = 'game_over'; + game.active = "None"; game.result = PERSIA; log_sep(); log(game.victory); @@ -3314,6 +3315,7 @@ function goto_scoring_phase() { if (is_greek_control(ABYDOS) && is_greek_control(EPHESOS)) { game.victory = "Greece won by controlling Abydos and Ephesos!"; game.state = 'game_over'; + game.active = "None"; game.result = GREECE; log_sep(); log(game.victory); @@ -3354,6 +3356,7 @@ function end_campaign() { game.result = "Draw"; } game.state = 'game_over'; + game.active = "None"; log_sep(); log(game.victory); } else { -- cgit v1.2.3