diff --git a/internal/game/game.go b/internal/game/game.go index c11c62b..ff1f040 100644 --- a/internal/game/game.go +++ b/internal/game/game.go @@ -247,6 +247,9 @@ func (g *Game) PlayerAct(id int, cmd string) *Deck { if len(cmd_s) != 2 || !g.CanDraw { return nil } + if curr.Life == 0 { + return DeckFromCards(curr.Hand) + } x_i, err := strconv.Atoi(cmd_s[1]) if x_i > 2 || x_i < 0 { return nil