Skip to content

Card.GetCardTargetCount ​

Signature ​

lua
Card.GetCardTargetCount(Card c) -> int

Description ​

Returns the number of persistent card targets currently recorded on c.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 17 indexed script(s).
  • Search this function in the Script Explorer with Card.GetCardTargetCount.
CardIDScriptDetected Calls
Dark General Freed70676581Scripts/c70676581.lua1
Miracle Fertilizer44887817Scripts/c44887817.lua1
Ancient Gear Engineer1953925Scripts/c1953925.lua1
Freed the Matchless General49681811Scripts/c49681811.lua1
Brainwashing Beam59258334Scripts/c59258334.lua1
Cyber Phoenix3370104Scripts/c3370104.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.lua1
Arcana Force 0 - The Fool62892347Scripts/c62892347.lua1
Obsidian Dragon90464188Scripts/c90464188.lua1
Frontier Wiseman38742075Scripts/c38742075.lua1
Fiend Skull Dragon66235877Scripts/c66235877.lua1
Chaos Command Magician72630549Scripts/c72630549.lua1

Script Examples ​

Dark General Freed (70676581) ​

Source: Scripts/c70676581.lua

lua
end
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

Miracle Fertilizer (44887817) ​

Source: Scripts/c44887817.lua

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

Ancient Gear Engineer (1953925) ​

Source: Scripts/c1953925.lua

lua
end
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