From 10f38ec5aac278113f1c91e5dd0a405931828f59 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 23 Jun 2024 01:31:12 +0200 Subject: fix edge case with georges vaysset when commune has no cards in hand --- rules.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index aeecf6f..de5f33e 100644 --- a/rules.js +++ b/rules.js @@ -4519,10 +4519,14 @@ CODE[60] = [ // Sapper Tactics ] CODE[61] = [ // Georges Vaysset - [ vm_asm, ()=>clear_undo() ], [ vm_asm, ()=>log("Commune hand:") ], + [ vm_if, ()=>(game.red_hand.length > 0) ], + [ vm_asm, ()=>clear_undo() ], [ vm_asm, ()=>{ for (let c of game.red_hand) logi("C" + c) } ], [ vm_goto, "georges_vaysset" ], + [ vm_else ], + [ vm_asm, ()=>{ logi("Empty") } ], + [ vm_endif ], [ vm_return ], ] -- cgit v1.2.3