summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-26 22:39:20 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-26 22:39:20 +0200
commit6167b57a44b75f7602d1db73c8eb8995ac94c451 (patch)
tree493876554a06c39217bc622f04d64409dc0af97e
parent598aa6187e5adf07e5f440e457c8a6392bf95edb (diff)
downloadwashingtons-war-6167b57a44b75f7602d1db73c8eb8995ac94c451.tar.gz
don't go to overstacked general check if he's captured after battle.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index a77b2d5..dff7c44 100644
--- a/rules.js
+++ b/rules.js
@@ -2261,7 +2261,7 @@ function end_move(stop) {
delete game.move
- if (count_friendly_generals(where) > 1)
+ if (is_map_space(where) && count_friendly_generals(where) > 1)
goto_remove_general_after_move(where)
else {
if (stop)