Skip to content

Card.CheckEquipTarget ​

Signature ​

lua
Card.CheckEquipTarget(Card c1, Card c2) -> bool

Description ​

Checks whether c2 is a valid Equip target for c1. The core requires c1 to be affected by an EFFECT_EQUIP_LIMIT that accepts c2, and it also enforces old and modern Union count limits. This is only a legality check for the equip relationship; it does not reserve a Spell & Trap Zone or perform Duel.Equip.

How To Use It ​

Use this before moving an existing Equip Card to a new monster or before offering a card from another location as an Equip Card.

lua
return c:IsFaceup() and eqc:CheckEquipTarget(c)

This checks the Equip Card's local equip-limit rules. It does not by itself reserve a Spell & Trap Zone or perform the equip.

Parameters ​

  • c1 Card
  • c2 Card

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3576

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 48 indexed script(s).
  • Search this function in the Script Explorer with Card.CheckEquipTarget.
CardIDScriptDetected Calls
Plunder Patroll Shipshape Ships Shipping44227727Scripts/c44227727.lua1
Power Tool Braver Dragon63265554Scripts/c63265554.lua1
DoomZ XII Zero - Drastea92472273Scripts/c92472273.lua1
The Continuing Epic of Charles11802691Scripts/c11802691.lua2
Courageous Crimson Chevalier Bradamante91479482Scripts/c91479482.lua1
Noble Knights of the Round Table55742055Scripts/c55742055.lua1
Ohime the Manifested Mikanko81260679Scripts/c81260679.lua1
Sacred Noble Knight of King Artorigus10613952Scripts/c10613952.lua1
"Infernoble Arms - Almace"98319530Scripts/c98319530.lua1
Jupiter the Power Patron of Destruction68231287Scripts/c68231287.lua1
Evil Eyes Unleashed8775395Scripts/c8775395.lua1
Arsenal Audit49652661Scripts/c49652661.lua1
Mermail King - Neptabyss69385019Scripts/c69385019.lua2
Reincarnation Unveiling Mail68663427Scripts/c68663427.lua1
Artorigus, King of the Noble Knights21223277Scripts/c21223277.lua1
Phantasm Spiral Power61397885Scripts/c61397885.lua1
Guardian Dreadscythe18175965Scripts/c18175965.lua1
Thunder Discharge27623932Scripts/c27623932.lua1
Prinzessin78527720Scripts/c78527720.lua2
Infernoble Knight Emperor Charles77656797Scripts/c77656797.lua1
Original Bamboo Sword33578406Scripts/c33578406.lua1
Mikanko Rivalry78199891Scripts/c78199891.lua1
Breath of Resurrection64018647Scripts/c64018647.lua1
Arms Regeneration32549749Scripts/c32549749.lua1
...and 24 more

Script Examples ​

Plunder Patroll Shipshape Ships Shipping (44227727) ​

Source: Scripts/c44227727.lua

lua
end
function c44227727.eqfilter(c,ec,tp)
	return (c:IsType(TYPE_MONSTER) and c:IsSetCard(0x13f) or c:IsCode(80621422) and c:CheckEquipTarget(ec))
		and not c:IsForbidden() and c:CheckUniqueOnField(tp,LOCATION_SZONE)
end

Power Tool Braver Dragon (63265554) ​

Source: Scripts/c63265554.lua

lua
end
function c63265554.eqfilter(c,ec,tp)
	return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec) and c:CheckUniqueOnField(tp,LOCATION_SZONE) and not c:IsForbidden()
end
function c63265554.eqtg(e,tp,eg,ep,ev,re,r,rp,chk)

DoomZ XII Zero - Drastea (92472273) ​

Source: Scripts/c92472273.lua

lua
end
function s.eqfilter(c,ec,tp)
	return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec) and c:CheckUniqueOnField(tp,LOCATION_SZONE) and not c:IsForbidden()
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)