Card.IsCanBeEffectTarget
Signature
lua
Card.IsCanBeEffectTarget(Card c, [Effect e]) -> boolDescription
Checks whether c can be targeted by e, or by the current reason effect when e is omitted.
Parameters
cCardeEffectoptional
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.
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)