Card.AddCounter
Source Code | Usage Examples | Card Functions
Places any number of counters of the specified type to a card.
Signature
Card.AddCounter(Card c, int countertype, int count, [bool checklimits = false]) → bool
lua
c:AddCounter(countertype,count,checklimits)Parameters
Card
cThe card to place counters on.
int
countertypeThe value for the type of counter to be placed.
int
countThe number of counters to be placed.
bool
checklimitsOptional. Defaults to
false.If set to
true, only places counters up to the maximum value set by anEFFECT_COUNTER_LIMITeffect on the card for that counter. Iffalse, does not place any counter if the limit would be exceeded.