Card.IsAttributeExcept
Source Code | Usage Examples | Card Functions
Checks if a card currently has any attribute other than a specified attribute(s).
aliases: deletedCard.IsDifferentAttribute
Signature
Card.IsAttributeExcept(Card c, int attr) → bool
c:IsAttributeExcept(attr)Parameters
Card
cThe monster to check the attribute(s) of.
int
attrComposite MonsterAttribute value to check.
cneeds to have any attribute other than this value.
Returns
Overload
Card.IsAttributeExcept(Card c, int attr, Card scard, int sumtype, int playerid) → bool
c:IsAttributeExcept(attr,scard,sumtype,playerid)Checks if a card would be treated as any attribute other than a specified attribute(s) if it would be used as material to Summon a monster.
Parameters
Card
cThe monster to check the attribute(s) of.
int
attrComposite MonsterAttribute value to check.
cneeds to have any attribute other than this value.Card
scardThe monster that would be Summoned using
cas material.int
sumtypeThe type of Summon.
int
playeridThe player that would perform the Summon.
Returns
bool
trueifcwould be treated as any attribute other thanattrwhen used as material for the Summon ofscard,falseotherwise.