diff options
| -rw-r--r-- | go/game/action.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
