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
cardsThe card(s) to send to the Deck.
int|nil
dest_playerThe player whose Deck to send the cards to. If
nil, each card is sent to its owner's Deck.int
sequenceThe sequence (order) in which the cards will be sent to.
int
reasonThe reason why the cards are being sent to the Deck.
int
reason_playerOptional.
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_playeris the player resolving that effect.