Skip to content

Card.GetCounter ​

Source Code | Usage Examples | Card Functions

Gets the number of counters of a certain type a card has.

Signature ​

Card.GetCounter(Card c, int countertype) → int

lua
c:GetCounter(countertype)

Parameters ​

  • Card c ​

    The card to get the counters of.

  • int countertype ​

    The type of the counter.

Returns ​

  • int ​

    The number of counters of the given type the card currently holds.