Skip to content

Card.IsTextDefense

Source Code | Card Functions

Returns true if a card's printed DEF is equal to a given value. Printed DEF might differ from the original DEF of the card due to effects that change original DEF. Use Card.IsBaseDefense if you need to check for the original DEF instead.

Signature

Card.IsTextDefense(Card c, int def) → bool

lua
c:IsTextDefense(def)

Parameters

  • Card c

    The card to check the printed DEF of.

  • int def

    The DEF value to check.

Returns

  • bool

    If the printed DEF of c is equal to def.


card-check, def-related, original-property