summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-06 11:22:14 +0100
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-12-06 11:22:14 +0100
commit315389aa03acc88b27c2d4e724fdbad6b0c7655b (patch)
tree63fc8ef2d27efe81b46180d3cbf479973bd5b7a6
parent8842ef0e2cb2794860b9ba12fd71992b92ea7ba0 (diff)
downloadvotes-for-women-315389aa03acc88b27c2d4e724fdbad6b0c7655b.tar.gz
victory check after vm_replace
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 113236b..e74ab8a 100644
--- a/rules.js
+++ b/rules.js
@@ -2726,6 +2726,8 @@ states.vm_replace = {
goto_vm_add_cubes()
} else {
reject_nineteenth_amendment(s)
+ if (check_victory())
+ return
vm_next()
}
},
@@ -2739,6 +2741,8 @@ states.vm_replace = {
goto_vm_add_cubes()
} else {
ratify_nineteenth_amendment(s)
+ if (check_victory())
+ return
vm_next()
}
}