Skip to content

Card.IsCanAddCounter ​

Source Code | Usage Examples | Card Functions

Checks if a number (int count) of the specified counter (int countertype) can be added to a card (Card c). When the number of added counter would exceed the limit for that card, if "least_one" is set to true, then it will return true if at least one more counter can be added otherwise it will return false. If location is specified, it returns if it could receive counter when placed on that location.

Signature ​

Card.IsCanAddCounter(Card c, int countertype, int count, [bool least_one = false, int loc]) → bool

lua
c:IsCanAddCounter(countertype,count,least_one,loc)

Parameters ​

  • Card c ​

    (To be added)

  • int countertype ​

    (To be added)

  • int count ​

    (To be added)

  • bool least_one ​

    Optional. Defaults to false.

    (To be added)

  • int loc ​

    Optional.

    (To be added)

Returns ​


under-construction