diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2023-02-26 10:58:22 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:52 +0100 |
| commit | b77b52ccb7e4f246698b84dbaba1d852f78e3ccb (patch) | |
| tree | b842a2aef6627549f0626dcf84add3e7ee68530f /go/client/game.go | |
| parent | ea1df280fc4ced38ce35516c0f4e5c95e17ccc6d (diff) | |
| download | muhqs-game-b77b52ccb7e4f246698b84dbaba1d852f78e3ccb.tar.gz muhqs-game-b77b52ccb7e4f246698b84dbaba1d852f78e3ccb.zip | |
prompt for selection if the targets allow selections
Diffstat (limited to 'go/client/game.go')
| -rw-r--r-- | go/client/game.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |
