summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2025-01-14 18:02:14 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2025-01-14 18:02:14 +0000
commit93b5e0609163dcf54d029a6e894dbd9333d588c4 (patch)
treebf25efc3b1e67c56c6f40e3c32f5e406374e9a06
parent00064f2b6dfd39cefa80f804662c47bbe84ad2e6 (diff)
download1989-dawn-of-freedom-93b5e0609163dcf54d029a6e894dbd9333d588c4.tar.gz
Add conditional autoresolve for Honecker
-rw-r--r--rules.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index e68a190..534feb2 100644
--- a/rules.js
+++ b/rules.js
@@ -3390,7 +3390,15 @@ function is_auto_resolve(card) {
}
return true
}
- } else {
+ } else if (card === C_HONECKER) {
+ if (game.discard.length === 0) {
+ if (!game.state.startsWith('vm')) {
+ log('No cards in discard.')
+ }
+ return true
+ }
+ }
+ else {
return false
}
}