aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-08-15 23:40:49 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-15 23:52:21 +0200
commitd1e7b170b11929fff3403cfb50d0dc6ed33c3ce0 (patch)
tree0b1e5366e7c9c32376f059461433d9e3861a3b1f
parentc0ce40217b209b89dc189b7cb426e927b02a55ca (diff)
downloadmuhqs-game-d1e7b170b11929fff3403cfb50d0dc6ed33c3ce0.tar.gz
muhqs-game-d1e7b170b11929fff3403cfb50d0dc6ed33c3ce0.zip
only show permActionPrompt if the stack is empty
-rw-r--r--go/client/game.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/go/client/game.go b/go/client/game.go
index dd8a9b39..d726e760 100644
--- a/go/client/game.go
+++ b/go/client/game.go
@@ -625,8 +625,9 @@ func (g *Game) handleSelection(obj any, x, y int) {
}
case game.Permanent:
- perm := obj
- g.addPermActionChoice(perm, x, y)
+ if g.gameState.Stack().IsEmpty() {
+ g.addPermActionChoice(obj, x, y)
+ }
case ui.HandCard:
if obj.C.IsPermanent() && !g.gameState.Stack().IsEmpty() {