Skip to content

Card.RemoveCounter

Source Code | Usage Examples | Card Functions

Removes any amount of a specified counter from a card.

Signature

Card.RemoveCounter(Card c, int player, int countertype, int count, int reason) → bool

lua
c:RemoveCounter(player,countertype,count,reason)

Parameters

  • Card c

    The card to remove counters from.

  • int player

    The player removing the counters.

  • int countertype

    The type of counter to remove.

  • int count

    The amount of counters to remove.

  • int reason

    Composite Reason value describing why the counters are being removed.

Returns

  • bool

    true if at least 1 counter was successfully removed, false otherwise.


counters-related