aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/client/game.go3
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 {