Skip to content

Card.IsBaseDefense

Source Code | Usage Examples | Card Functions

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

Signature

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

lua
c:IsBaseDefense(def)

Parameters

  • Card c

    The card to check the original DEF of.

  • int def

    The DEF value to check.

Returns

  • bool

    If the original DEF of c is equal to def.


card-check, def-related, original-property