From 75d5899af2d766433c6d5bb60ac0787ac86462f4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 21 Jun 2021 18:54:36 +0200 Subject: tripoli: Tweak play of battle cards in land battle when no Tr infantry. --- rules.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 01c86b6..45348c5 100644 --- a/rules.js +++ b/rules.js @@ -1542,9 +1542,6 @@ states.land_battle_bombardment_results = { } function goto_land_battle() { - // No opposition left -- skip card play and go to end. - if (count_tripolitan_infantry(game.where) == 0) - return goto_land_battle_round(); goto_land_battle_american_card(); } @@ -2683,6 +2680,8 @@ function can_play_the_guns_of_tripoli() { } function can_play_mercenaries_desert() { + if (count_tripolitan_infantry(game.where) == 0) + return false; // no opposition left return (count_arab_infantry(game.where) > 0) && is_not_removed(MERCENARIES_DESERT); } @@ -2706,10 +2705,14 @@ function can_play_send_in_the_marines() { } function can_play_lieutenant_obannon_leads_the_charge() { + if (count_tripolitan_infantry(game.where) == 0) + return false; // no opposition left return (count_american_marines(game.where) > 0) && is_not_removed(LIEUTENANT_OBANNON_LEADS_THE_CHARGE); } function can_play_marine_sharpshooters() { + if (count_tripolitan_infantry(game.where) == 0) + return false; // no opposition left return (count_american_marines(game.where) > 0) && is_not_removed(MARINE_SHARPSHOOTERS); } -- cgit v1.2.3