EffectCondition
subtype of function
A function used to check an activated effect's condition, usually passed to Effect.SetCondition. Conditions refer to those explicitly stated in the card text, (e.g. "If you control a monster:"), not for activation legality (e.g. checking if you have a Field Spell in your Deck to activate Terraforming), which is checked by the EffectTarget instead.
Functions that use this type as parameter
Functions that use this type as parameter
aux.AddEquipProcedure- Adds procedure for equipping Spells.
Signature
function(Effect e, int tp, Group eg, int ep, Group ev, Effect re, int r, int rp) → bool
function(e,tp,eg,ep,ev,re,r,rp)Parameters
Effect
eThe effect being checked.
int
tpThe player activating the effect.
Group
egA group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the event code.
int
epThe player associated to the event that prompted the effect activation.
Group
evA value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code.
Effect
reThe effect that caused the event that prompted the effect activation.
int
rComposite Reason value of the event that prompted the effect activation.
int
rpThe player that caused the event that prompted the effect activation.