summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-11 20:38:37 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-11 20:38:37 +0100
commitb7ab205b3c5b9c37a27a55a8e6ad3bc42fc7c994 (patch)
tree4dcd1a44af67b863a5671006918e1cbd45734ef0
parente0b966842c4580ac913ed442700a68dc9e5c1b3a (diff)
downloadwashingtons-war-master.tar.gz
Capture British generals when placing Rochambeau.HEADmaster
-rw-r--r--rules.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 13baacf..c287d2a 100644
--- a/rules.js
+++ b/rules.js
@@ -4246,6 +4246,8 @@ states.place_rochambeau = {
log("Placed 5 CU and Rochambeau at S" + to + ".")
move_general(ROCHAMBEAU, to)
move_french_cu(FRENCH_REINFORCEMENTS, to, 5)
+ if (has_enemy_general(to))
+ capture_enemy_general(to)
if (count_friendly_generals(to) > 1)
game.state = "remove_general_rochambeau"
else