Skip to content

Card.IsRaceExcept

Source Code | Usage Examples | Card Functions

Checks if a card currently has any race other than a specified race(s).

aliases: Card.IsDifferentRacedeleted

Signature

Card.IsRaceExcept(Card c, int race) → bool

lua
c:IsRaceExcept(race)

Parameters

  • Card c

    The monster to check the race(s) of.

  • int race

    Composite MonsterRace value to check. c needs to have any race other than this value.

Returns

  • bool

    true if c has any race other than the specified race, false otherwise.

Overload

Card.IsRaceExcept(Card c, int race, Card scard, int sumtype, int playerid) → bool

lua
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 c

    The monster to check the race(s) of.

  • int race

    Composite MonsterRace value to check. c needs to have any race other than this value.

  • Card scard

    The monster that would be Summoned using c as material.

  • int sumtype

    The type of Summon.

  • int playerid

    The player that would perform the Summon.

Returns

  • bool

    true if c would be treated as any race other than the specified race when used as material for the Summon of scard, false otherwise.


See Also


card-check, race-related