From 1d7a26ff27a3197150a038d311a410096e02b108 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 26 Aug 2025 18:21:06 +0200 Subject: fix target selection prompt Only allow to progress to the next target if the current one does not require further selection. --- go/client/game.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/go/client/game.go b/go/client/game.go index f4262f67..5689c88c 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -504,12 +504,17 @@ func (g *Game) updateButtons() { passButtonLabel := "pass" if g.prompt != nil { targets := g.prompt.Action().Targets() + target := targets.Cur() + // We still need a selection if targets.RequireSelection() { - if !targets.Cur().HasSelection() { + // The current target requires a selection + if target.RequireSelection() { g.hide(g.passButton) g.show(g.resetButton) return } + // The current target does not need further selections so we can + // offer to go to the next target. passButtonLabel = "next" } else { passButtonLabel = "confirm" -- cgit v1.2.3