summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-24 00:06:52 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commitc56833461f979ce6992552ec2be60c55b6222255 (patch)
treecae21f5c3d1b5ee93cbd8b7f0cb303df9cff47d7
parent21173cddcd8e43e22ea17a52cfad89ac186e905c (diff)
downloadfriedrich-c56833461f979ce6992552ec2be60c55b6222255.tar.gz
handle degenerate case when running out of cards and TC -1
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 9a09807..b416f5f 100644
--- a/rules.js
+++ b/rules.js
@@ -873,9 +873,9 @@ function goto_tactical_cards() {
function should_power_discard_tc() {
if (game.power === P_FRANCE && !set_has(FC_AMERICA) && !set_has(FC_INDIA))
- return true // game.draw.length === 4
+ return game.draw.length === 4
if (game.scenario === 1 && game.power === P_PRUSSIA)
- return true // game.draw.length === 2
+ return game.draw.length === 2
return false
}