Card.CheckEquipTarget
Signature
lua
Card.CheckEquipTarget(Card c1, Card c2) -> boolDescription
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.
Related Functions
Parameters
c1Cardc2Card
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Plunder Patroll Shipshape Ships Shipping | 44227727 | Scripts/c44227727.lua | 1 |
| Power Tool Braver Dragon | 63265554 | Scripts/c63265554.lua | 1 |
| DoomZ XII Zero - Drastea | 92472273 | Scripts/c92472273.lua | 1 |
| The Continuing Epic of Charles | 11802691 | Scripts/c11802691.lua | 2 |
| Courageous Crimson Chevalier Bradamante | 91479482 | Scripts/c91479482.lua | 1 |
| Noble Knights of the Round Table | 55742055 | Scripts/c55742055.lua | 1 |
| Ohime the Manifested Mikanko | 81260679 | Scripts/c81260679.lua | 1 |
| Sacred Noble Knight of King Artorigus | 10613952 | Scripts/c10613952.lua | 1 |
| "Infernoble Arms - Almace" | 98319530 | Scripts/c98319530.lua | 1 |
| Jupiter the Power Patron of Destruction | 68231287 | Scripts/c68231287.lua | 1 |
| Evil Eyes Unleashed | 8775395 | Scripts/c8775395.lua | 1 |
| Arsenal Audit | 49652661 | Scripts/c49652661.lua | 1 |
| Mermail King - Neptabyss | 69385019 | Scripts/c69385019.lua | 2 |
| Reincarnation Unveiling Mail | 68663427 | Scripts/c68663427.lua | 1 |
| Artorigus, King of the Noble Knights | 21223277 | Scripts/c21223277.lua | 1 |
| Phantasm Spiral Power | 61397885 | Scripts/c61397885.lua | 1 |
| Guardian Dreadscythe | 18175965 | Scripts/c18175965.lua | 1 |
| Thunder Discharge | 27623932 | Scripts/c27623932.lua | 1 |
| Prinzessin | 78527720 | Scripts/c78527720.lua | 2 |
| Infernoble Knight Emperor Charles | 77656797 | Scripts/c77656797.lua | 1 |
| Original Bamboo Sword | 33578406 | Scripts/c33578406.lua | 1 |
| Mikanko Rivalry | 78199891 | Scripts/c78199891.lua | 1 |
| Breath of Resurrection | 64018647 | Scripts/c64018647.lua | 1 |
| Arms Regeneration | 32549749 | Scripts/c32549749.lua | 1 |
| ...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)
endPower 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)