summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index 416790f..c2bc472 100644
--- a/rules.js
+++ b/rules.js
@@ -4,6 +4,14 @@
// TODO: campaign messed up who is who after battle
// TODO: retreat with 0 CU after battle
+/* washington's capture
+ - winning general with no CU on enemy PC (no undo anyway)
+ - retreat after battle (no undo anyway)
+
+ - place reinforcements (no player shift)
+ - move (no player shift)
+*/
+
// campaign
// event
@@ -758,7 +766,8 @@ function capture_washington() {
game.french_alliance = 0
}
- goto_george_washington_captured()
+ // set flag to handle washington's capture!
+ game.captured_washington = 1
}
function capture_british_general(where) {
@@ -1346,6 +1355,12 @@ function end_strategy_card() {
return
}
+ if (game.captured_washington) {
+ delete game.captured_washington
+ goto_george_washington_captured()
+ return
+ }
+
if (game.campaign) {
if (--game.campaign > 0) {
game.count = 3 // can activate any general!