summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-24 02:21:55 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-24 02:21:55 +0200
commitf0357af2ef6c3d4cc35e905bb85865f8f49dc750 (patch)
tree3bcd1fade99acc1d2e1d5e156540f5f46d5d2379
parentf76fdcdd3df4cd8ae0f14bd70b4cd6253c25b77d (diff)
downloadtime-of-crisis-f0357af2ef6c3d4cc35e905bb85865f8f49dc750.tar.gz
Don't advance into capital after victorious battle with lone militia!
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 1ae33be..7db581b 100644
--- a/rules.js
+++ b/rules.js
@@ -4567,7 +4567,7 @@ function goto_combat_victory_attacker() {
remove_general_castra(game.combat.target)
}
- if (can_enter_capital(game.where))
+ if (game.combat.attacker >= 0 && can_enter_capital(game.where))
game.state = "advance_after_combat"
else
goto_post_combat()