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-01-27 16:43:49 +0100
commit2d83ae0035fdb88f8073d4b35a88d764dbbd58bf (patch)
tree9aab7ffc1a2f1b31fc269f1e12b7d449e3cb24cb /go/client
parentb85c1a85e3f9a53321495e4d015e7620b29f9929 (diff)
downloadmuhqs-game-2d83ae0035fdb88f8073d4b35a88d764dbbd58bf.tar.gz
muhqs-game-2d83ae0035fdb88f8073d4b35a88d764dbbd58bf.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)
}