summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-23 12:51:33 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commita8068262f23b72967957595f8bea20a30bc836a4 (patch)
tree8cb4a659a6b6bfea8d92390bd640d4a6cb5dd43e
parentde679761df9494f19717de8c9c57fc754d7d0dcd (diff)
downloadfriedrich-a8068262f23b72967957595f8bea20a30bc836a4.tar.gz
fix austria theater
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 7d7cb3a..8a6bf7e 100644
--- a/rules.js
+++ b/rules.js
@@ -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
}