summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-05-09 22:15:34 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:31:29 +0100
commit733593874f548a4514bcb96ef0126976ca682e40 (patch)
tree6390cd3ce3b78123c763ad8de5ce3c28787cbe19
parentef084c049d0a9e0015d450057c49da54b6981ce2 (diff)
downloadpax-pamir-733593874f548a4514bcb96ef0126976ca682e40.tar.gz
Fix game over trigger.
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 8877045..b39978f 100644
--- a/rules.js
+++ b/rules.js
@@ -2669,10 +2669,10 @@ function do_dominance_check() {
// Check instant victory
let vps = game.players.map((pp,i) => pp.vp).sort((a,b)=>b-a);
if (vps[0] >= vps[1] + 4)
- goto_game_over();
+ return goto_game_over();
if (final)
- goto_game_over();
+ return goto_game_over();
game.events = {};
for (let p = 0; p < game.players.length; ++p)