Card.RegisterEffect
Source Code | Usage Examples | Card Functions
Registers an effect to a card.
Signature
Card.RegisterEffect(Card c, Effect e, [bool forced = false, int ...]) → Effect|nil
lua
c:RegisterEffect(e,forced,...)Parameters
Card
cThe card to register the effect to. This card becomes the effect's handler.
Effect
eThe effect to register to the card.
bool
forcedOptional. Defaults to
false.If set to
true, the effect will be registered even if the card currently cannot be affected by the effect.int
...Optional.
Any amount of EffectMarker values to be used to mark the effect.