Skip to content

Auxiliary.SpiritReturnTargetOptional ​

Signature ​

lua
Auxiliary.SpiritReturnTargetOptional(Effect e, int tp, Group eg, int ep, any ev, Effect re, any r, int rp, bool chk) -> bool|nil

Description ​

Target function for the optional Spirit Monster End Phase return effect. During the check step it requires the handler to be able to return to the hand, then registers return-to-hand operation info.

Parameters ​

  • e Effect
  • tp int
  • eg Group
  • ep int
  • ev any
  • re Effect
  • r any
  • rp int
  • chk bool

Returns ​

  • bool|nil - true during valid target checks; otherwise no meaningful return value.

Source ​

  • Utilities/utility.lua:212

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 1 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.SpiritReturnTargetOptional.
CardIDScriptDetected Calls
Sacred Spirit of the Ice Barrier44877690Scripts/c44877690.lua1

Script Examples ​

Sacred Spirit of the Ice Barrier (44877690) ​

Source: Scripts/c44877690.lua

lua
	local e2=e1:Clone()
	e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
	e2:SetTarget(aux.SpiritReturnTargetOptional)
	c:RegisterEffect(e2)
	--to hand, target version