Skip to content

Card.IsLinkAttribute ​

Signature ​

lua
Card.IsLinkAttribute(Card c, int attribute, [int player]) -> bool

Description ​

Checks whether c's Attribute while used as Link Material contains attribute. player defaults to the current reason player. The core uses c:GetLinkAttribute(player), so Link Material Attribute-changing effects are included.

Parameters ​

  • c Card
  • attribute int
  • player int optional - default: current reason player

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 57 indexed script(s).
  • Search this function in the Script Explorer with Card.IsLinkAttribute.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Fiendsmith's Sequence49867899Scripts/c49867899.lua1
Yummy★Snatchy30581601Scripts/c30581601.lua1
Salamangreat Raging Phoenix57134592Scripts/c57134592.lua1
Laevateinn the Burning Blade6260560Scripts/c6260560.lua1
Salamangreat Sunlight Wolf87871125Scripts/c87871125.lua1
Harpie Conductor85696777Scripts/c85696777.lua1
Fiendsmith's Requiem2463794Scripts/c2463794.lua1
Hi-Speedroid Rubber Band Shooter72813401Scripts/c72813401.lua1
Salamangreat Pyro Phoenix31313405Scripts/c31313405.lua1
Marincess Wonder Heart94207108Scripts/c94207108.lua1
Miasma Necromancer69176851Scripts/c69176851.lua1
Breachborrel Dragon90011273Scripts/c90011273.lua1
Marincess Aqua Argonaut20934852Scripts/c20934852.lua1
Ancient Warriors Oath - Double Dragon Lords65711558Scripts/c65711558.lua1
Galaxy-Eyes Solflare Dragon3356494Scripts/c3356494.lua1
Marincess Great Bubble Reef47910940Scripts/c47910940.lua1
Ancient Gear Ballista10547580Scripts/c10547580.lua1
G Golem Invalid Dolmen24151924Scripts/c24151924.lua1
X-Krawler Synaphysis39998992Scripts/c39998992.lua1
Salamangreat Heatleo41463181Scripts/c41463181.lua1
Dillingerous Dragon23732205Scripts/c23732205.lua1
Ukanomitsune-no-Onari49451215Scripts/c49451215.lua1
Fiendsmith's Agnumday32991300Scripts/c32991300.lua1
...and 33 more

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
end
function s.mfilter(c)
	return c:IsLinkAttribute(ATTRIBUTE_WATER)
end
function s.glcheck(g,c,tp)

Fiendsmith's Sequence (49867899) ​

Source: Scripts/c49867899.lua

lua
end
function s.mfilter(c)
	return c:IsLinkRace(RACE_FIEND) and c:IsLinkAttribute(ATTRIBUTE_LIGHT)
end
function s.filter0(c)

Yummy★Snatchy (30581601) ​

Source: Scripts/c30581601.lua

lua
end
function s.matfilter(c)
	return c:IsLinkAttribute(ATTRIBUTE_LIGHT) and c:IsLinkRace(RACE_BEAST) and c:IsLevelBelow(4)
end
function s.stfilter(c,tp)