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
c
The card to get the attribute(s) of.
Card
scard
The card that would use
c
as material for its summon.int
sumtype
Optional. Defaults to
0
.The SummonType of the summon that
c
would be used for.int
playerid
Optional. Defaults to
PLAYER_NONE
.The player that would use
c
as material to summonscard
. Ifsumtype
isSUMMON_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
.