aboutsummaryrefslogtreecommitdiff
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-07-24 12:22:09 -0400
commit982049a3a8463d6abcf78517c5f3f41cc2a45501 (patch)
tree73b77ae293eab037372ec9e5d597e8530bac5f4d
parent6bfb6e5dfc3c944fe8b9b5b86cccd8a51084f402 (diff)
downloadmuhqs-game-982049a3a8463d6abcf78517c5f3f41cc2a45501.tar.gz
muhqs-game-982049a3a8463d6abcf78517c5f3f41cc2a45501.zip
prompt for all targets that allow a selection
-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)