Card.AddSetcodesRule
Source Code | Usage Examples | Card
Functions
Creates and registers EFFECT_ADD_SETCODE
effects to add any number of archetypes to a card.
Signature
Card.AddSetcodesRule(Card c
, int code
, any copyable
, int ...
) → EffectArray
lua
c:AddSetcodesRule(code,copyable,...)
Parameters
Card
c
The card that will receive the archetypes.
int
code
A passcode/ID the card should have for the additional archetypes to apply.
any
copyable
If provided as a non-nil value, the registered effects can be copied.
int
...
Any number of archetypes that the card will receive.
Returns
EffectArray
A table containing all the
EFFECT_ADD_SETCODE
effects registered.