Skip to content

Card.CanChainAttack ​

Source Code | Usage Examples | Card Functions

Checks if a card can make a number of attacks in a row.

Signature ​

Card.CanChainAttack(Card c, [int attackcount = 2, bool on_monsters_only = false]) → bool

lua
c:CanChainAttack(attackcount,on_monsters_only)

Parameters ​

  • Card c ​

    The card to check.

  • int attackcount ​

    Optional. Defaults to 2.

    The minimum amount of attacks c should be able to declare.

  • bool on_monsters_only ​

    Optional. Defaults to false.

    If true, checks only the possibility of follow-up attacks on monsters.

Returns ​

  • bool ​

    If c can declare a minimum of attackcount attacks in a row.


card-check, battle-related