From 1ff595846cb48da82718975826d45e6d4e559bad Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 3 Jul 2025 22:02:03 -0400 Subject: add new random draft pick action --- go/game/action.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/game/action.go b/go/game/action.go index 62703180..373c814f 100644 --- a/go/game/action.go +++ b/go/game/action.go @@ -115,6 +115,11 @@ func NewDraftPick(p *Player, pack PileOfCards, card *Card) Action { return &DraftPick{player: p, pack: pack, pick: card} } +func newRandomDraftPick(p *Player, n PlayerNotification) Action { + pack := n.Context.(PileOfCards) + return NewDraftPick(p, pack, pack.RandomCard()) +} + type ActionBase struct { source interface{} Card *Card -- cgit v1.2.3