From fb61687c19e9eed7dd890caf67f9040bb93d78bc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 15 Jan 2022 21:40:44 +0100 Subject: Francois Bigot. --- rules.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rules.js b/rules.js index d62cd54..80d73f2 100644 --- a/rules.js +++ b/rules.js @@ -3945,6 +3945,22 @@ events.courier_intercepted = { }, } +events.françois_bigot = { + can_play() { + return enemy_player.hand.length > 0; + }, + play() { + let i = random(enemy_player.hand.length); + let c = enemy_player.hand[i]; + enemy_player.hand.splice(i, 1); + game.cards.discarded.push(c); + log(`France discards ${card_name(c)}.`); + if (c === SURRENDER) + game.events.surrender = 1; + end_action_phase(); + }, +} + function is_card_removed(card) { return game.cards.removed.includes(card); } -- cgit v1.2.3