summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-09 19:07:14 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commit370df4421c58da27796b9ecb4fdabfdae0988a7f (patch)
tree4be4ad7881d698a81023302750f51be3da95d5c4 /rules.js
parent0781f61d10e510ac4edfc3d4abb1637fbda36fdc (diff)
downloadwashingtons-war-370df4421c58da27796b9ecb4fdabfdae0988a7f.tar.gz
capture enemy generals when bringing on british reinforcements
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index b00798d..62f6dca 100644
--- a/rules.js
+++ b/rules.js
@@ -835,6 +835,10 @@ function place_british_reinforcements(who, count, where) {
if (count > 0) {
logp("reinforced " + where + " with " + count + " CU");
move_british_cu(BRITISH_REINFORCEMENTS, where, count);
+ if (has_enemy_general(where))
+ capture_enemy_general(where);
+ if (game.active == BRITISH && game.congress == where)
+ disperse_continental_congress(where);
}
}