diff options
author | Tor Andersson <tor@ccxvii.net> | 2025-04-28 21:24:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2025-04-28 21:24:45 +0200 |
commit | 36b05193ddaf6f89367df183d538fe016ddcd9cb (patch) | |
tree | 766cd5ec6f6e994b032cec2b1e9f679181d8db75 | |
parent | 41ceb7b830ea813876ebb2dd6bb6270f838aada5 (diff) | |
download | washingtons-war-master.tar.gz |
-rw-r--r-- | rules.js | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2684,6 +2684,7 @@ states.retreat_before_battle_roll = { // TODO: choose which CU to retreat with if mix of french/american }, roll() { + clear_undo() let who = game.retreat.who let to = game.retreat.to let agility = GENERALS[who].agility @@ -3614,6 +3615,10 @@ states.remove_american_pc_within_two_spaces_of_a_british_general_1 = { game.who = g game.state = "remove_american_pc_within_two_spaces_of_a_british_general_2" }, + pass() { + delete game.who + end_strategy_card_now() + }, } states.remove_american_pc_within_two_spaces_of_a_british_general_2 = { @@ -3834,6 +3839,7 @@ states.john_glovers_marblehead_regiment_who = { } events.declaration_of_independence = function () { + clear_undo() game.save = game.active game.active = P_AMERICA game.state = "declaration_of_independence" |