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
eThe effect whose use to limit per turn.
int
countThe number of times the effect can be used per turn.
int|table
codeOptional.
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
flagOptional.
Additional modifiers for the use limit behavior.