Card.GetAttribute
Source Code | Usage Examples | Card Functions
Gets the current attribute(s) of a card.
Signature
Card.GetAttribute(Card c) → int
c:GetAttribute()Parameters
Returns
int
Composite MonsterAttribute value representing the card's current attribute(s).
Overload
Card.GetAttribute(Card c, Card scard, [int sumtype = 0, int playerid = PLAYER_NONE]) → int
c:GetAttribute(scard,sumtype,playerid)Gets the attribute(s) of a card if it would be used as a material for a summon.
Parameters
Card
cThe card to get the attribute(s) of.
Card
scardThe card that would use
cas material for its summon.int
sumtypeOptional. Defaults to
0.The SummonType of the summon that
cwould be used for.int
playeridOptional. Defaults to
PLAYER_NONE.The player that would use
cas material to summonscard. IfsumtypeisSUMMON_TYPE_FUSION, this parameter is forced to be the player using the current effect.
Returns
int
Composite MonsterAttribute value representing the card's attribute(s) if it would be used as material to summon
scard.