Skip to content

Card.IsHasEffect ​

Signature ​

lua
Card.IsHasEffect(Card c, int code, [int player]) -> Effect|nil,... Effect

Description ​

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 ​

  • c Card
  • code int
  • player int optional

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.
CardIDScriptDetected Calls
Artmage Non-Finito74631897Scripts/c74631897.lua1
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua3
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua3
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua2
El Shaddoll Apkallone50907446Scripts/c50907446.lua4
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
Ursarctic Polari27693363Scripts/c27693363.lua4
Prank-Kids Weather Washer44509529Scripts/c44509529.lua2
Dark End Evaporation Dragon62002838Scripts/c62002838.lua1
Junoldo the Shadespirit Power Patron10266279Scripts/c10266279.lua2
Ursarctic Polar Star62714453Scripts/c62714453.lua4
Light End Sublimation Dragon35614780Scripts/c35614780.lua1
El Shaddoll Meshachrer32467459Scripts/c32467459.lua8
Prank-Kids Rocket Ride18514525Scripts/c18514525.lua3
Jupredo the Shademachine Power Patron43871165Scripts/c43871165.lua2
D/D Extra Surveyor74387963Scripts/c74387963.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Flame Swordsrealm73714736Scripts/c73714736.lua1
Meteonis Drytron22398665Scripts/c22398665.lua1
Alba System Dogmatikalamity93053159Scripts/c93053159.lua2
Prank-Kids Bow-Wow-Bark43886072Scripts/c43886072.lua2
Union Activation38527680Scripts/c38527680.lua7
Ursarctic Grand Chariot80086070Scripts/c80086070.lua4
Lunalight Masquerade2344618Scripts/c2344618.lua2
...and 206 more

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()