Card.IsRaceExcept
Source Code | Usage Examples | Card Functions
Checks if a card currently has any race other than a specified race(s).
aliases: deletedCard.IsDifferentRace
Signature
Card.IsRaceExcept(Card c, int race) → bool
c:IsRaceExcept(race)Parameters
Card
cThe monster to check the race(s) of.
int
raceComposite MonsterRace value to check.
cneeds to have any race other than this value.
Returns
Overload
Card.IsRaceExcept(Card c, int race, Card scard, int sumtype, int playerid) → bool
c:IsRaceExcept(race,scard,sumtype,playerid)Checks if a card would be treated as any race other than a specified race(s) if it would be used as material to Summon a monster.
Parameters
Card
cThe monster to check the race(s) of.
int
raceComposite MonsterRace value to check.
cneeds to have any race 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 race other than the specifiedracewhen used as material for the Summon ofscard,falseotherwise.