Skip to content

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

lua
aux.DelayedOperation(cs,phase,flag,e,tp,oper,cond,reset,reset_count,hint,effect_desc)

Parameters ​

  • Card|Group cs ​

    The cards to perform the operation on.

  • int phase ​

    The Phase in which the operation will be performed.

  • int flag ​

    A unique integer used as a flag to register on the affected cards.

  • Effect e ​

    The effect performing the operation.

  • int tp ​

    The player performing the operation.

  • DelayedEffectOperation oper ​

    The operation to perform on the cards.

  • DelayedEffectCondition cond ​

    Optional.

    Additional checks to perform on the cards before performing the operation.

  • int reset ​

    Optional. Defaults to PHASE_END|phase.

    Reset value to determine the point at which the operation will no longer be performed after.

  • int reset_count ​

    Optional. Defaults to 1.

    How many times the reset value must happen.

  • int hint ​

    Optional.

    An integer representing a string to show on affected cards.

  • int effect_desc ​

    Optional.

    An integer representing a string to display on the LP bar of the player performing the operation.

Returns ​

  • Effect|nil ​

    The effect that would perform the operation, or nil if an empty group is passed.