aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--go/game/challenge.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/go/game/challenge.go b/go/game/challenge.go
index 9ce4515e..ff43d061 100644
--- a/go/game/challenge.go
+++ b/go/game/challenge.go
@@ -91,7 +91,8 @@ func prepBaseChallenge(s *LocalState) *LocalState {
p := s.PlayerById(1)
nCards := rand.Intn(6)
nCards = nCards + 3
- NewRandomDeck(nCards, []SetIdentifier{Sets.Base, Sets.Magic, Sets.Equipments}).MoveInto(p.Store)
+ d := NewRandomDeck(nCards, []SetIdentifier{Sets.Base, Sets.Magic, Sets.Equipments})
+ p.Store.AddCards(d.FilterCards(func(c *Card) bool { return c.IsBuyable() }))
ai := s.PlayerById(2)
ai.Deck = NewRandomDeck(nCards, []SetIdentifier{Sets.Base})