Skip to content

Card.Type ​

Source Code | Usage Examples | Card Functions

Returns a card's original type(s).

Signature ​

Card.Type(Card c) → int

lua
c:Type()

Parameters ​

  • Card c ​

    The card to get the original type(s) of.

Returns ​

Overload ​

Card.Type(Card c, int ctype) → nil

lua
c:Type(ctype)

Changes a card's type.

Parameters ​

  • Card c ​

    The card to change the type of.

  • int ctype ​

    Composite CardType value to set as the card's new type(s).


card-type-related