Skip to content

Card.GetMainCardType ​

Source Code | Usage Examples | Card Functions

Returns the current main type of a card (TYPE_MONSTER, TYPE_SPELL, or TYPE_TRAP).

Signature ​

Card.GetMainCardType(Card c) → int

lua
c:GetMainCardType()

Parameters ​

  • Card c ​

    The card to get the main current type of.

Returns ​

  • int ​

    The current main type of the card.