summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-15 21:40:44 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitfb61687c19e9eed7dd890caf67f9040bb93d78bc (patch)
treeca7236657d690031c9cf2c1cc84d1ca10f1fa0a1
parente6d8c13dccf780a2f2c140c84e60435759e126d1 (diff)
downloadwilderness-war-fb61687c19e9eed7dd890caf67f9040bb93d78bc.tar.gz
Francois Bigot.
-rw-r--r--rules.js16
1 files changed, 16 insertions, 0 deletions
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);
}