Skip to content

Card.IsReasonEffect

Source Code | Usage Examples | Card Functions

Returns true if a given effect caused the Event that happened to a card.

Signature

Card.IsReasonEffect(Card c, int effect) → bool

lua
c:IsReasonEffect(effect)

Parameters

  • Card c

    The card to check the reason of.

  • int effect

    The effect being checked to determine if it caused the event.

Returns

  • bool

    If effect caused the event that happened to c.


card-check, reason-related