From a1ab548f016f07171224d59cbaae37c35a47a24a Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 26 Feb 2023 10:58:22 +0100 Subject: prompt for selection if the targets allow selections --- go/client/game.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go/client/game.go b/go/client/game.go index 787987d5..2ea3a9f4 100644 --- a/go/client/game.go +++ b/go/client/game.go @@ -474,7 +474,8 @@ func (g *Game) handleSelection(obj interface{}, x, y int) { case ui.HandCard: a := game.NewPlayAction(g.activePlayer, obj.C) - if a.Targets().RequireSelection() { + targets := a.Targets() + if targets != nil && targets.Cur().AllowSelection() { g.addPrompt(a, fmt.Sprintf("Select targets to play %v", obj.C.Name)) g.handLayer.HighlightCard(obj.C, ui.HighlightSelectionColor) } else { -- cgit v1.2.3