aboutsummaryrefslogtreecommitdiff
path: root/go/client
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-14 16:30:25 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:50:09 +0200
commit43170592c914e8281870405f00baff75672e1528 (patch)
treeb7524e38b859f9425c60b6858114e048e87b2b12 /go/client
parent379c17fe2244dc8fe8365cdbf3d62e21951c8121 (diff)
downloadmuhqs-game-43170592c914e8281870405f00baff75672e1528.tar.gz
muhqs-game-43170592c914e8281870405f00baff75672e1528.zip
sealed: only let the user select buyable cards
Diffstat (limited to 'go/client')
-rw-r--r--go/client/sealed.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/go/client/sealed.go b/go/client/sealed.go
index 6096a1d5..ab0f0296 100644
--- a/go/client/sealed.go
+++ b/go/client/sealed.go
@@ -66,7 +66,12 @@ func (s *Sealed) startSealed(_sets string) {
sets := strings.Split(_sets, ",")
for _, setName := range sets {
set := game.SetNames[setName]
- setDeck := game.NewDeckFromCardPaths(set.CardPaths())
+ setDeck := game.NewDeck()
+ for _, c := range game.NewDeckFromCardPaths(set.CardPaths()).Cards() {
+ if c.IsBuyable() {
+ setDeck.AddCard(c)
+ }
+ }
setDeck.MoveInto(s.pool)
}