Skip to content

EffectTarget

subtype of function

A function used to check activation legality or perform activation procedure, excluding costs.

Functions that use this type as parameter

Functions that use this type as parameter

Functions that return this type

Functions that return this type

Signature

function(Effect e, int tp, Group eg, int ep, Group ev, Effect re, int r, int rp, int chk) → boolean

lua
function(e,tp,eg,ep,ev,re,r,rp,chk)

Parameters

  • Effect e

    The Effect to activate.

  • int tp

    The player activating the effect.

  • Group eg

    The event group of the effect activation.

  • int ep

    The event player of the effect activation.

  • Group ev

    The event value of the effect activation.

  • Effect re

    The reason effect of the effect activation.

  • int r

    The reason of the effect activation.

  • int rp

    The reason player of the effect activation.

  • int chk

    0 when checking the activation, 1 when performing.

Returns

  • boolean

    If chk is 0, returns true if the effect can be activated.


under-construction