Skip to content

Card.IsReasonCard

Source Code | Card Functions

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

Signature

Card.IsReasonCard(Card c, int rc) → bool

lua
c:IsReasonCard(rc)

Parameters

  • Card c

    The card to check the reason of.

  • int rc

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

Returns

  • bool

    If rc caused the event that happened to c.


card-check, reason-related