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-05-09 19:07:14 +0200
commit487c57a11660fd5e9c8d66b66eb5ff00eed0574f (patch)
tree829103e394e1b28efbac31c8027934826dae47af /rules.js
parent393be54dbfd5897574cb8f3f38020138194274ff (diff)
downloadwashingtons-war-487c57a11660fd5e9c8d66b66eb5ff00eed0574f.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);
}
}