Skip to content

Card.IsAttributeExcept ​

Source Code | Usage Examples | Card Functions

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

aliases: Card.IsDifferentAttributedeleted

Signature ​

Card.IsAttributeExcept(Card c, int attr) → bool

lua
c:IsAttributeExcept(attr)

Parameters ​

  • Card c ​

    The monster to check the attribute(s) of.

  • int attr ​

    Composite MonsterAttribute value to check. c needs to have any attribute other than this value.

Returns ​

  • bool ​

    true if c has any attribute other than attr, false otherwise.

Overload ​

Card.IsAttributeExcept(Card c, int attr, Card scard, int sumtype, int playerid) → bool

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

    The monster to check the attribute(s) of.

  • int attr ​

    Composite MonsterAttribute value to check. c needs to have any attribute 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 attribute other than attr when used as material for the Summon of scard, false otherwise.


See Also ​


card-check, attribute-related