aboutsummaryrefslogtreecommitdiff
path: root/go/client
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-07-22 12:53:57 -0400
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:57:28 +0200
commiteda681d5512c4bf2b3966f1f8029dc60bed6c672 (patch)
tree22df25b45caed71a1db938a753c8efe5dd0ef7e1 /go/client
parentad78bff7dc46892f358fc550cdd3c991b8dd79fe (diff)
downloadmuhqs-game-eda681d5512c4bf2b3966f1f8029dc60bed6c672.tar.gz
muhqs-game-eda681d5512c4bf2b3966f1f8029dc60bed6c672.zip
prompt for all targets that allow a selection
Diffstat (limited to 'go/client')
-rw-r--r--go/client/game.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/go/client/game.go b/go/client/game.go
index 4402d1ea..19677ea5 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -240,7 +240,7 @@ func (g *Game) addPermActionChoice(perm game.Permanent, x, y int) {
}
func (g *Game) declareOrPromptTargets(a game.Action) {
- if a.Targets() != nil && a.Targets().RequireSelection() {
+ if a.Targets() != nil && a.Targets().AllowSelection() {
g.addCancelablePrompt(a, fmt.Sprintf("Select targets for %v", a))
} else {
g.declareAction(a)