summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-09-24 23:49:28 +0200
committerTor Andersson <tor@ccxvii.net>2023-10-01 16:11:22 +0200
commit7f0c3fbd196dad80699aa74254fe37a3b72de32d (patch)
treec11e8cce817f9655be321918a239bf94b6dfd3b2
parent8df1c18e7594de3fede403361b83cfc0437f366c (diff)
downloadwaterloo-campaign-1815-7f0c3fbd196dad80699aa74254fe37a3b72de32d.tar.gz
Fix ZOC cache bug!
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index e8c98c7..c12c816 100644
--- a/rules.js
+++ b/rules.js
@@ -2491,6 +2491,7 @@ function gen_action_stop_hex(hex) {
}
exports.view = function (state, player) {
+ zoc_valid = false
game = state
view = {
@@ -2547,6 +2548,7 @@ exports.action = function (state, player, action, arg) {
}
exports.resign = function (state, player) {
+ zoc_valid = false
game = state
if (game.state !== 'game_over') {
if (player === P1)