Skip to content

Card.IsType ​

Source Code | Usage Examples | Card Functions

Returns true if a card currently has any of the given type(s).

Signature ​

Card.IsType(Card c, int type) → bool

lua
c:IsType(type)

Parameters ​

  • Card c ​

    The card to check.

  • int type ​

    Composite CardType values to check. c only needs to match any of the types, not all.

Returns ​

  • bool ​

    If c is currently a has any of type.

Overload ​

Card.IsType(Card c, int type, Card scard, int sumtype, int playerid) → bool

lua
c:IsType(type,scard,sumtype,playerid)

Returns true if a card can be used as a Summon material as any of the given type(s).

Parameters ​

  • Card c ​

    The card to check.

  • int type ​

    Composite CardType values to check. c only needs to match any of the types, not all.

  • Card scard ​

    The monster to check if it can be Summoned using c.

  • int sumtype ​

    The type of the summon to check.

  • int playerid ​

    The player that would perform the summon.

Returns ​

  • bool ​

    If c can be used as a material of the given type.


card-check, card-type-related