Skip to content

Card.IsCanBeEffectTarget ​

Signature ​

lua
Card.IsCanBeEffectTarget(Card c, [Effect e]) -> bool

Description ​

Checks whether c can be targeted by e, or by the current reason effect when e is omitted.

Parameters ​

  • c Card
  • e Effect optional

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 328 indexed script(s).
  • Search this function in the Script Explorer with Card.IsCanBeEffectTarget.
CardIDScriptDetected Calls
Performage Cup Tricker6812770Scripts/c6812770.lua1
Ghostrick Renovation61818176Scripts/c61818176.lua1
Prank-Kids Weather Washer44509529Scripts/c44509529.lua1
D/D Count Surveyor5997110Scripts/c5997110.lua1
Artmage Masterwork -Succession-37517035Scripts/c37517035.lua1
Dracotail Shaulas42125140Scripts/c42125140.lua1
Radiant Typhoon Varuroon, the Marine Eidolon39341885Scripts/c39341885.lua1
Prank-Kids Rocket Ride18514525Scripts/c18514525.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Gravity Balance37930737Scripts/c37930737.lua1
Trirealm Rift Judgment65195679Scripts/c65195679.lua1
Trickstar Light Arena63492244Scripts/c63492244.lua1
Grandpa Demetto44190146Scripts/c44190146.lua1
Prank-Kids Bow-Wow-Bark43886072Scripts/c43886072.lua1
Phantom Knights' Rank-Up-Magic Force88504133Scripts/c88504133.lua1
Super Quantal Mech Ship Magnacarrier10424147Scripts/c10424147.lua1
Amazement Administrator Arlekino94821366Scripts/c94821366.lua1
Divine Serpent Apophis97800311Scripts/c97800311.lua1
Berserkion the Electromagna Warrior42901635Scripts/c42901635.lua1
Nebulus, Dragon Ruler of Mishaps94655777Scripts/c94655777.lua1
Galaxy-Eyes Photon Dragon93717133Scripts/c93717133.lua1
Darkuriboh1035143Scripts/c1035143.lua1
ABC-Dragon Buster1561110Scripts/c1561110.lua1
Triamid Dancer69529337Scripts/c69529337.lua1
...and 304 more

Script Examples ​

Performage Cup Tricker (6812770) ​

Source: Scripts/c6812770.lua

lua
end
function s.xyzfilter(c,e)
	return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:IsCanBeEffectTarget(e)
end
function s.gcheck(g)

Ghostrick Renovation (61818176) ​

Source: Scripts/c61818176.lua

lua
	local tc=Duel.GetFieldCard(tp,LOCATION_FZONE,0)
	if chkc then return false end
	if chk==0 then return tc and tc:IsFaceup() and tc:IsSetCard(0x8d) and tc:IsAbleToHand() and tc:IsCanBeEffectTarget(e) end
	if not Duel.CheckPhaseActivity() then e:SetLabel(1) else e:SetLabel(0) end
	Duel.SetTargetCard(tc)

Prank-Kids Weather Washer (44509529) ​

Source: Scripts/c44509529.lua

lua
function c44509529.spfilter(c,e,tp)
	return c:IsSetCard(0x120) and not c:IsType(TYPE_FUSION)
		and c:IsCanBeEffectTarget(e) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c44509529.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)