diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-01-15 21:40:44 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 11:54:52 +0100 |
commit | fb61687c19e9eed7dd890caf67f9040bb93d78bc (patch) | |
tree | ca7236657d690031c9cf2c1cc84d1ca10f1fa0a1 | |
parent | e6d8c13dccf780a2f2c140c84e60435759e126d1 (diff) | |
download | wilderness-war-fb61687c19e9eed7dd890caf67f9040bb93d78bc.tar.gz |
Francois Bigot.
-rw-r--r-- | rules.js | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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); } |