Skip to content

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 c

    The card that will receive the additional archetype(s).

  • int code

    An ID the card should have for the additional archetype(s) to apply.

  • any copyable

    If 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


registers-effect