Card.IsHasEffect
Signature
lua
Card.IsHasEffect(Card c, int code, [int player]) -> Effect|nil,... EffectDescription
Returns the effects currently affecting c with effect code code, or nil if none match. When player is supplied, only effects whose count limit can still be used by that player are returned. Multiple matching effects are returned as multiple Lua return values.
Parameters
cCardcodeintplayerintoptional
Returns
Effect|nil... Effect- Additional matching effects, if any.
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3604
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 230 indexed script(s).
- Search this function in the Script Explorer with
Card.IsHasEffect.
Script Examples
Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
function s.getrg(tp,sc)
local rg=Duel.GetReleaseGroup(tp,true,REASON_SPSUMMON)
local mrg=rg:Filter(Card.IsHasEffect,nil,EFFECT_EXTRA_RELEASE)
if mrg:GetCount()>0 then
return mrg:Filter(s.spfilter,nil,tp,sc)Levia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
if c:IsOnField() and c:IsFacedown() then return false end
if not c:IsCanBeLinkMaterial(lc) or f and not f(c) then return false end
local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)}
for _,te in pairs(le) do
local tf=te:GetValue()Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943)
Source: Scripts/c41570943.lua
lua
if c:IsOnField() and c:IsFacedown() then return false end
if not c:IsCanBeLinkMaterial(lc) or f and not f(c) then return false end
local le={c:IsHasEffect(EFFECT_EXTRA_LINK_MATERIAL,tp)}
for _,te in pairs(le) do
local tf=te:GetValue()