Skip to content

Card.IsReasonPlayer

Source Code | Usage Examples | Card Functions

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

Signature

Card.IsReasonPlayer(Card c, int player) → bool

lua
c:IsReasonPlayer(player)

Parameters

  • Card c

    The card to check the reason of.

  • int player

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

Returns

  • bool

    If player caused the event that happened to c.


card-check, reason-related