Skip to content

Duel.SendtoDeck ​

Source Code | Usage Examples | Duel Functions

Sends a card(s) to the Deck.

Signature ​

Duel.SendtoDeck(Card|Group cards, int|nil dest_player, int sequence, int reason, [int reason_player]) → int

lua
Duel.SendtoDeck(cards,dest_player,sequence,reason,reason_player)

Parameters ​

  • Card|Group cards ​

    The card(s) to send to the Deck.

  • int|nil dest_player ​

    The player whose Deck to send the cards to. If nil, each card is sent to its owner's Deck.

  • int sequence ​

    The sequence (order) in which the cards will be sent to.

  • int reason ​

    The reason why the cards are being sent to the Deck.

  • int reason_player ​

    Optional.

    The player sending the cards to the Deck. If not supplied, the player is inferred from the game state. For example, if cards are sent during the resolution of an effect, the reason_player is the player resolving that effect.

Returns ​

  • int ​

    The number of cards successfully sent to the Deck.