Skip to content

Card.GetCardTarget ​

Signature ​

lua
Card.GetCardTarget(Card c) -> Group

Description ​

Returns a Group containing all persistent card targets currently recorded on c.

Parameters ​

  • c Card

Returns ​

  • Group

Source ​

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

Used By ​

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

  • Detected in 15 indexed script(s).
  • Search this function in the Script Explorer with Card.GetCardTarget.
CardIDScriptDetected Calls
Dark General Freed70676581Scripts/c70676581.lua1
Miracle Fertilizer44887817Scripts/c44887817.lua1
Ancient Gear Engineer1953925Scripts/c1953925.lua1
Number 66: Master Key Beetle76067258Scripts/c76067258.lua2
Freed the Matchless General49681811Scripts/c49681811.lua1
Doom Shaman94944637Scripts/c94944637.lua1
Il Blud70595331Scripts/c70595331.lua1
Ryu Senshi49868263Scripts/c49868263.lua1
Rod of Silence - Kay'est95515060Scripts/c95515060.lua1
Tyrant Dragon94568601Scripts/c94568601.lua1
Widespread Dud42167046Scripts/c42167046.lua2
Arcana Force 0 - The Fool62892347Scripts/c62892347.lua2
Obsidian Dragon90464188Scripts/c90464188.lua1
Frontier Wiseman38742075Scripts/c38742075.lua1
Fiend Skull Dragon66235877Scripts/c66235877.lua1

Script Examples ​

Dark General Freed (70676581) ​

Source: Scripts/c70676581.lua

lua
function c70676581.distg(e,c)
	if c:GetCardTargetCount()==0 or not c:IsType(TYPE_SPELL) then return false end
	return c:GetCardTarget():IsExists(c70676581.disfilter,1,nil,e:GetHandlerPlayer())
end
function c70676581.disfilter(c,tp)

Miracle Fertilizer (44887817) ​

Source: Scripts/c44887817.lua

lua
	local c=e:GetHandler()
	if c:GetCardTargetCount()==0 then return false end
	return c:GetCardTarget():IsExists(c44887817.dfilter,1,nil,eg)
end
function c44887817.desop(e,tp,eg,ep,ev,re,r,rp)

Ancient Gear Engineer (1953925) ​

Source: Scripts/c1953925.lua

lua
function c1953925.distg(e,c)
	if not c:IsType(TYPE_TRAP) or c:GetCardTargetCount()==0 then return false end
	return c:GetCardTarget():IsContains(e:GetHandler())
end
function c1953925.disop(e,tp,eg,ep,ev,re,r,rp)