Skip to content

Card.IsReasonCard ​

Source Code | Usage Examples | Card Functions

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

Signature ​

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

lua
rc:IsReasonCard(c)

Parameters ​

  • Card rc ​

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

  • Card c ​

    The card to check the reason of.

Returns ​

  • bool ​

    If rc caused the event that happened to c.


card-check, reason-related