Skip to content

Auxiliary.AddEquipSpellEffect ​

Signature ​

lua
Auxiliary.AddEquipSpellEffect(Card c, bool is_self, bool is_opponent, function filter, function|nil eqlimit, [bool pause], [bool skip_target]) -> Effect

Description ​

Creates an Equip Spell activation effect for c and registers the matching EFFECT_EQUIP_LIMIT. The activation effect is returned; when pause is true it is created but not registered on c. Use this for ordinary Equip Spells. Write the target and operation manually when the card equips after another action or needs extra state.

How To Use It ​

Use this for the normal Equip Spell activation shape: target a face-up monster, equip the handler during resolution, and register the matching EFFECT_EQUIP_LIMIT on the Equip Card.

lua
aux.AddEquipSpellEffect(c,true,true,s.eqfilter,s.eqlimit)

Use a manual activation instead when the card Special Summons first, equips cards from another location, equips several cards at once, or needs extra state before Duel.Equip.

Parameters ​

  • c Card
  • is_self bool
  • is_opponent bool
  • filter function
  • eqlimit function|nil
  • pause bool optional - default: false
  • skip_target bool optional - default: false

Returns ​

  • Effect - Created activation effect.

Source ​

  • Utilities/utility.lua:1888

Used By ​

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

  • Detected in 10 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.AddEquipSpellEffect.
CardIDScriptDetected Calls
Tails of the Fairy Tails82119326Scripts/c82119326.lua1
DoomZ Command "D.O.O.M.D.U.R.G."68831625Scripts/c68831625.lua1
Cursed Copycat Noble Arms23249029Scripts/c23249029.lua1
Reincarnation Unveiling Mail68663427Scripts/c68663427.lua1
DoomZ Command "A.D.R.A.S.T.E.I.A."84054556Scripts/c84054556.lua1
Xyz Lay43150717Scripts/c43150717.lua1
Orichalcos Sword of Sealing847217Scripts/c847217.lua1
Dragon Treasure1435851Scripts/c1435851.lua1
Ballista of Rampart Smashing242146Scripts/c242146.lua1
WINDS OF VICTORY37301660Scripts/c37301660.lua1

Script Examples ​

Tails of the Fairy Tails (82119326) ​

Source: Scripts/c82119326.lua

lua
function s.initial_effect(c)
	aux.AddCodeList(c,19144623)
	aux.AddEquipSpellEffect(c,true,true,Card.IsFaceup,nil)
	--Atk up
	local e1=Effect.CreateEffect(c)

DoomZ Command "D.O.O.M.D.U.R.G." (68831625) ​

Source: Scripts/c68831625.lua

lua
local s,id,o=GetID()
function s.initial_effect(c)
	aux.AddEquipSpellEffect(c,true,true,Card.IsFaceup,nil)
	--dam
	local e1=Effect.CreateEffect(c)

Cursed Copycat Noble Arms (23249029) ​

Source: Scripts/c23249029.lua

lua
local s,id,o=GetID()
function s.initial_effect(c)
	aux.AddEquipSpellEffect(c,true,true,Card.IsFaceup,nil)
	--Atk Change
	local e1=Effect.CreateEffect(c)