Card.GetEquipTarget
Signature
lua
Card.GetEquipTarget(Card c) -> Card|nilDescription
Returns the card that c is currently equipped to, or nil if c has no equip target. Use this while the Equip Card is still equipped. After it leaves the relationship, use Card.GetPreviousEquipTarget for leave-field triggers.
How To Use It
Use this while the card is currently equipped and you need the monster it is equipped to.
lua
local ec=e:GetHandler():GetEquipTarget()
if ec and ec:IsFaceup() then
-- use the equipped monster
endAfter the Equip Card leaves the field, this relationship is gone. Use Card.GetPreviousEquipTarget in leave-field or sent-to-GY triggers.
Related Functions
Parameters
cCard
Returns
Card|nil
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3574
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 150 indexed script(s).
- Search this function in the Script Explorer with
Card.GetEquipTarget.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Spirit Illusion | 71939275 | Scripts/c71939275.lua | 5 |
| Converging Wishes | 20007374 | Scripts/c20007374.lua | 3 |
| Camelot, Realm of Noble Knights and Noble Arms | 15635751 | Scripts/c15635751.lua | 1 |
| Fiendsmith Kyrie | 26434972 | Scripts/c26434972.lua | 1 |
| Red-Eyes Slash Dragon | 21140872 | Scripts/c21140872.lua | 1 |
| Clown Crew Malabarisme | 83232904 | Scripts/c83232904.lua | 1 |
| Horn of Olifant | 55749927 | Scripts/c55749927.lua | 1 |
| Amaze Attraction Wonder Wheel | 93473606 | Scripts/c93473606.lua | 5 |
| Nephe Shaddoll Fusion | 60226558 | Scripts/c60226558.lua | 2 |
| Dragunity Arma Gram | 53184342 | Scripts/c53184342.lua | 1 |
| Master Spirit Tech Force - Pendulum Ruler | 68508433 | Scripts/c68508433.lua | 1 |
| Amaze Attraction Thrill Train | 36591747 | Scripts/c36591747.lua | 7 |
| Shichi-Go-San | 11035075 | Scripts/c11035075.lua | 5 |
| Salamandra Fusion | 9102835 | Scripts/c9102835.lua | 3 |
| Immortal Phoenix Gearfried | 22091647 | Scripts/c22091647.lua | 1 |
| Gergonne's End | 59490397 | Scripts/c59490397.lua | 4 |
| Tragic Twin Twined Jewels | 81143465 | Scripts/c81143465.lua | 3 |
| Commander Souza, Swordmaster | 72867001 | Scripts/c72867001.lua | 1 |
| Meklord Emperor Granel | 4545683 | Scripts/c4545683.lua | 1 |
| Plunder Patroll Parrrty | 43004235 | Scripts/c43004235.lua | 1 |
| Tailwind of Gusto | 1187243 | Scripts/c1187243.lua | 4 |
| Marincess Wonder Heart | 94207108 | Scripts/c94207108.lua | 1 |
| ZS - Ouroboros Sage | 32281491 | Scripts/c32281491.lua | 2 |
| Super Strident Blaze | 81193865 | Scripts/c81193865.lua | 5 |
| ...and 126 more |
Script Examples
Spirit Illusion (71939275)
Source: Scripts/c71939275.lua
lua
end
function s.fcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetEquipTarget()
end
function s.filter1(c,e)Converging Wishes (20007374)
Source: Scripts/c20007374.lua
lua
end
function c20007374.cacon(e,tp,eg,ep,ev,re,r,rp)
local ec=e:GetHandler():GetEquipTarget()
return ec and eg:IsContains(ec)
endCamelot, Realm of Noble Knights and Noble Arms (15635751)
Source: Scripts/c15635751.lua
lua
end
function s.dfilter(c,e)
return c:GetEquipTarget() and c:IsDestructable(e) and not c:IsStatus(STATUS_DESTROY_CONFIRMED)
end
function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)