Duel.IsPlayerAffectedByEffect
Signature
lua
Duel.IsPlayerAffectedByEffect(int player, int code) -> Effect|nil,...Description
Returns an effect affecting player with code, or nil if no matching effect exists. Some effects may return additional values.
Parameters
playerintcodeint
Returns
Effect|nil...
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:5043
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 732 indexed script(s).
- Search this function in the Script Explorer with
Duel.IsPlayerAffectedByEffect.
Script Examples
Pendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
local ft2=Duel.GetLocationCountFromEx(tp,tp,nil,TYPE_PENDULUM)
local ft=Duel.GetUsableMZoneCount(tp)
local ect=c29724053 and Duel.IsPlayerAffectedByEffect(tp,29724053) and c29724053[tp]
if ect and ect<ft2 then ft2=ect end
if Duel.IsPlayerAffectedByEffect(tp,59822133) thenLevia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
end
function s.glcheck(g,c,tp)
return Duel.IsPlayerAffectedByEffect(tp,38391684) or g:GetCount()==3
end
function s.LConditionFilter(c,f,lc,e)Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943)
Source: Scripts/c41570943.lua
lua
end
function s.glcheck(g,c,tp)
return Duel.IsPlayerAffectedByEffect(tp,38391684) or g:GetCount()==4
end
function s.LConditionFilter(c,f,lc,e)