Skip to content

InitialEffect

subtype of function

A function that registers a card's initial effects. Defined as initial_effect in the card script metatable, and invoked by the script engine when loading the card.

Table Types with field values of this type

Table Types with field values of this type

  • Script - The card script metatable

Signature

function(Card c) → nil

lua
function(c)

Parameters

  • Card c

    The card to register initial effects to.


registers-effect