Effect.SetCountLimit
Source Code | Usage Examples | Effect
Functions
Sets the number of times an effect can be used per turn.
Signature
Effect.SetCountLimit(Effect e
, int count
, [int|table code
, CountLimitFlag flag
]) → nil
lua
e:SetCountLimit(count,code,flag)
Parameters
Effect
e
The effect whose use to limit per turn.
int
count
The number of times the effect can be used per turn.
int|table
code
Optional.
If supplied as an integer, the limit is applied to all effects with the same code globally (e.g.,
You can only use this effect of "..." once per turn
) rather than per copy of a card. If supplied as a table, the first element is the code and the second element is another integer used as an "index" to further distinguish between effects with the same code.CountLimitFlag
flag
Optional.
Additional modifiers for the use limit behavior.