Skip to content

Effect.SetCountLimit

Source Code | Usage Examples | Effect Functions

Sets an effect's (Effect e) use limit per turn to (int count). If "code" is supplied, then it would count toward all effects with the same CountLimitCode (i.e. Hard OPT). If a card has multiple HOPT effects on it, then instead of passing "code" as integer, a table can be used as parameter, the first element of this table will be still "code", the second element will instead be the HOPT index of that effect, this is done to prevent the passed code from clashing with other HOPT effects. (e.g. calling "e:SetCountLimit(1,1234)" is the same as calling "e:SetCountLimit(1,{1234,0})". The flag parameter consists of the "EFFECT_COUNT_CODE_XXX" constants.

Signature

Effect.SetCountLimit(Effect e, int count, [int code = 0|{, int hopt_index, int flag]) → nil

lua
e:SetCountLimit(count,code,hopt_index,flag)

Parameters

  • Effect e

    (To be added)

  • int count

    (To be added)

  • int code

    Optional. Defaults to 0|{.

    (To be added)

  • int hopt_index

    Optional.

    (To be added)

  • int flag

    Optional.

    (To be added)


under-construction