Card.GetFirstCardTarget
Signature
lua
Card.GetFirstCardTarget(Card c) -> Card|nilDescription
Returns c's first persistent card target, or nil.
Parameters
cCard
Returns
Card|nil
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3593
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 29 indexed script(s).
- Search this function in the Script Explorer with
Card.GetFirstCardTarget.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Goblin Freefall Squad | 85123771 | Scripts/c85123771.lua | 1 |
| Altergeist Manifestation | 35146019 | Scripts/c35146019.lua | 1 |
| Phantom Knights' Sword | 61936647 | Scripts/c61936647.lua | 1 |
| Ninjitsu Art of Shadow Sealing | 13629812 | Scripts/c13629812.lua | 1 |
| Borrel Regenerator | 6556178 | Scripts/c6556178.lua | 1 |
| Phantom Knights' Fog Blade | 25542642 | Scripts/c25542642.lua | 1 |
| Galaxy Zero | 97617181 | Scripts/c97617181.lua | 1 |
| Dimension Mirage | 80560728 | Scripts/c80560728.lua | 3 |
| Dimension Sphinx | 17787975 | Scripts/c17787975.lua | 3 |
| Follow Wing | 42776855 | Scripts/c42776855.lua | 3 |
| Moon Dance Ritual | 14005031 | Scripts/c14005031.lua | 3 |
| Nightmare Wheel | 54704216 | Scripts/c54704216.lua | 3 |
| Vain Betrayer | 94933468 | Scripts/c94933468.lua | 2 |
| Brainwashing Beam | 59258334 | Scripts/c59258334.lua | 4 |
| Cyber Phoenix | 3370104 | Scripts/c3370104.lua | 1 |
| Mask of Dispel | 20765952 | Scripts/c20765952.lua | 3 |
| Fulfillment of the Contract | 48206762 | Scripts/c48206762.lua | 1 |
| Re-Fusion | 74694807 | Scripts/c74694807.lua | 1 |
| Evil Eye Mesmerism | 42899204 | Scripts/c42899204.lua | 1 |
| Limit Reverse | 27551 | Scripts/c27551.lua | 4 |
| Symbol of Heritage | 45305419 | Scripts/c45305419.lua | 1 |
| Shattered Axe | 12117532 | Scripts/c12117532.lua | 3 |
| Gradius' Option | 14291024 | Scripts/c14291024.lua | 4 |
| Premature Burial | 70828912 | Scripts/c70828912.lua | 1 |
| ...and 5 more |
Script Examples
Goblin Freefall Squad (85123771)
Source: Scripts/c85123771.lua
lua
function s.reop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=c:GetFirstCardTarget()
Card.CancelCardTarget(c,tc)
endAltergeist Manifestation (35146019)
Source: Scripts/c35146019.lua
lua
if e:GetLabelObject():GetLabel()~=0 then return end
local c=e:GetHandler()
local tc=c:GetFirstCardTarget()
if tc and tc:IsLocation(LOCATION_MZONE) then
Duel.Destroy(tc,REASON_EFFECT)Phantom Knights' Sword (61936647)
Source: Scripts/c61936647.lua
lua
local c=e:GetHandler()
if c:IsStatus(STATUS_DESTROY_CONFIRMED) then return false end
local tc=c:GetFirstCardTarget()
return tc and eg:IsContains(tc)
end