diff options
Diffstat (limited to 'go/game/action.go')
| -rw-r--r-- | go/game/action.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/go/game/action.go b/go/game/action.go index d82bf56a..0cc0bd0a 100644 --- a/go/game/action.go +++ b/go/game/action.go @@ -108,10 +108,8 @@ func (a *FreeDiscardAction) PayCosts(s *LocalState) bool { if a.targets.CheckTargets(s) != nil { return false } - for _, sel := range a.Target().Selection() { - card, _ := sel.(*Card) - a.player.DiscardCard(card) - } + cards := utils.InterfaceSliceToTypedSlice[*Card](a.Target().Selection()) + a.player.discardCards(cards) return true } |
