From 93b5e0609163dcf54d029a6e894dbd9333d588c4 Mon Sep 17 00:00:00 2001 From: iainp5 Date: Tue, 14 Jan 2025 18:02:14 +0000 Subject: Add conditional autoresolve for Honecker --- rules.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'rules.js') 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 } } -- cgit v1.2.3