From 565d9fafd28352f21ba22e8c3b1cb970e9b00a58 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 26 Aug 2024 23:01:08 +0200 Subject: Turn into overrun if Arnold is removed with battle event. --- rules.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/rules.js b/rules.js index 9b20133..f3feaff 100644 --- a/rules.js +++ b/rules.js @@ -2693,6 +2693,18 @@ states.play_attacker_battle_card_confirm = { view.actions.next = 1 }, next() { + // Check if Arnold's removal loads to overrun! + let to = game.move.to + let cu = game.move.carry_british + game.move.carry_american + game.move.carry_french + if (cu >= 4 && count_enemy_cu(to) === 1 && !has_enemy_general(to)) { + overrun(to) + if (game.active === P_BRITAIN && game.congress === to) + disperse_continental_congress() + delete game.combat + resume_moving() + return + } + clear_undo() goto_play_defender_battle_card() }, -- cgit v1.2.3