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
cThe card to check.
int
typeComposite CardType values to check.
conly needs to match any of the types, not all.
Returns
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
cThe card to check.
int
typeComposite CardType values to check.
conly needs to match any of the types, not all.Card
scardThe monster to check if it can be Summoned using
c.int
sumtypeThe type of the summon to check.
int
playeridThe player that would perform the summon.