Card.AddSetcodesRule
Source Code | Usage Examples | Card Functions
Adds additional original archetype(s) to a card that couldn't be added in its database entry (due to it being limited to 4 archetypes). This should not be used to add archetypes to a card due to card effects.
Signature
Card.AddSetcodesRule(Card c, int code, any copyable, int ...) → EffectArray
lua
c:AddSetcodesRule(code,copyable,...)Parameters
Card
cThe card that will receive the additional archetype(s).
int
codeAn ID the card should have for the additional archetype(s) to apply.
any
copyableIf provided as a non-nil value, the registered effects can be copied.
int
...The setcode(s) of the archetype(s) the card will receive.
Returns
EffectArray
A table containing all the
EFFECT_ADD_SETCODEeffects used to add the archetypes.