summaryrefslogtreecommitdiff
path: root/events.txt
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-06-23 01:31:12 +0200
committerTor Andersson <tor@ccxvii.net>2024-06-23 01:31:12 +0200
commit10f38ec5aac278113f1c91e5dd0a405931828f59 (patch)
tree4b2ae4f65e7eb9d1a73631750df16716ccda198b /events.txt
parent189491d205c840fde568f3806b1358e15411459d (diff)
downloadred-flag-over-paris-10f38ec5aac278113f1c91e5dd0a405931828f59.tar.gz
fix edge case with georges vaysset when commune has no cards in hand
Diffstat (limited to 'events.txt')
-rw-r--r--events.txt10
1 files changed, 7 insertions, 3 deletions
diff --git a/events.txt b/events.txt
index 528f726..7be3fff 100644
--- a/events.txt
+++ b/events.txt
@@ -421,10 +421,14 @@ CARD 60 - Sapper Tactics
remove_disc (where_present(ANY))
CARD 61 - Georges Vaysset
- asm clear_undo()
asm log("Commune hand:")
- asm { for (let c of game.red_hand) logi("C" + c) }
- goto "georges_vaysset"
+ if (game.red_hand.length > 0)
+ asm clear_undo()
+ asm { for (let c of game.red_hand) logi("C" + c) }
+ goto "georges_vaysset"
+ else
+ asm { logi("Empty") }
+ endif
CARD 62 - Colonne Vendôme
# must have initiative