UNSTABLE
This function is unstable. oper and cond's signatures may change later. It may be modified or deleted without notice. Unstable versions will not be documented when modified or deleted.
aux.DelayedOperation
Source Code | Usage Examples | aux Functions
Creates an effect that performs an operation on cards each time a given phase is entered.
Signature
aux.DelayedOperation(Card|Group cs, int phase, int flag, Effect e, int tp, DelayedEffectOperation oper, [DelayedEffectCondition cond, int reset = PHASE_END|phase, int reset_count = 1, int hint, int effect_desc]) → Effect|nil
aux.DelayedOperation(cs,phase,flag,e,tp,oper,cond,reset,reset_count,hint,effect_desc)Parameters
Card|Group
csThe cards to perform the operation on.
int
phaseThe Phase in which the operation will be performed.
int
flagA unique integer used as a flag to register on the affected cards.
Effect
eThe effect performing the operation.
int
tpThe player performing the operation.
DelayedEffectOperation
operThe operation to perform on the cards.
DelayedEffectCondition
condOptional.
Additional checks to perform on the cards before performing the operation.
int
resetOptional. Defaults to
PHASE_END|phase.Reset value to determine the point at which the operation will no longer be performed after.
int
reset_countOptional. Defaults to
1.How many times the reset value must happen.
int
hintOptional.
An integer representing a string to show on affected cards.
int
effect_descOptional.
An integer representing a string to display on the LP bar of the player performing the operation.