diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-05-23 12:51:33 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-05-30 21:59:25 +0200 |
commit | a8068262f23b72967957595f8bea20a30bc836a4 (patch) | |
tree | 8cb4a659a6b6bfea8d92390bd640d4a6cb5dd43e | |
parent | de679761df9494f19717de8c9c57fc754d7d0dcd (diff) | |
download | friedrich-a8068262f23b72967957595f8bea20a30bc836a4.tar.gz |
fix austria theater
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -423,7 +423,7 @@ function has_power_dropped_out(pow) { if (game.scenario === 1) return pow !== P_PRUSSIA && pow !== P_HANOVER && pow !== P_FRANCE if (game.scenario === 2) - return pow !== P_PRUSSIA && pow !== P_HANOVER && pow !== P_AUSTRIA && pow !== P_IMPERIAL + return pow !== P_PRUSSIA && pow !== P_AUSTRIA && pow !== P_IMPERIAL switch (pow) { case P_RUSSIA: return has_russia_dropped_out() case P_SWEDEN: return has_sweden_dropped_out() @@ -871,10 +871,10 @@ function goto_tactical_cards() { } function should_power_discard_tc() { - if (game.power === P_FRANCE) - return true + if (game.power === P_FRANCE && !set_has(FC_AMERICA) && !set_has(FC_INDIA)) + return true // game.draw.length === 4 if (game.scenario === 1 && game.power === P_PRUSSIA) - return true + return true // game.draw.length === 2 return false } |