Skip to content

Card.IsLinkCode ​

Signature ​

lua
Card.IsLinkCode(Card c, int code1, [int code2], [... int]) -> bool

Description ​

Checks whether c matches any supplied code while used as Link Material. This includes c's current code, second code, and EFFECT_ADD_LINK_CODE values. If no link-code additions apply, the binding falls back to Card.IsCode.

Parameters ​

  • c Card
  • code1 int
  • code2 int optional
  • ... int optional

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 21 indexed script(s).
  • Search this function in the Script Explorer with Card.IsLinkCode.
CardIDScriptDetected Calls
Emperor Charles the Great97864322Scripts/c97864322.lua1
Salamangreat Raging Phoenix57134592Scripts/c57134592.lua1
Salamangreat Sanctuary1295111Scripts/c1295111.lua1
Salamangreat Sunlight Wolf87871125Scripts/c87871125.lua1
Code of Soul74652966Scripts/c74652966.lua1
Salamangreat Pyro Phoenix31313405Scripts/c31313405.lua1
Salamangreat Rage14934922Scripts/c14934922.lua1
Cyberse Enchanter60279710Scripts/c60279710.lua1
Salamangreat Circle52155219Scripts/c52155219.lua1
Salamangreat Heatleo41463181Scripts/c41463181.lua1
Salamangreat Gift20788863Scripts/c20788863.lua1
Will of the Salamangreat64178424Scripts/c64178424.lua1
Marincess Crystal Heart67712104Scripts/c67712104.lua1
Sunavalon Dryas93896655Scripts/c93896655.lua1
Knightmare Mermaid3679218Scripts/c3679218.lua1
Backup Supervisor97677329Scripts/c97677329.lua1
Cyber Dragon Sieger46724542Scripts/c46724542.lua1
Salamangreat Roar51339637Scripts/c51339637.lua1
Salamangreat Claw88540324Scripts/c88540324.lua1
Crusadia Magius72228247Scripts/c72228247.lua1
Scareclaw Light-Heart53776969Scripts/c53776969.lua1

Script Examples ​

Emperor Charles the Great (97864322) ​

Source: Scripts/c97864322.lua

lua
end
function s.matfilter(c)
	return c:IsLevel(9) and c:IsLinkCode(77656797) and c:GetEquipCount()>0
end
function s.copycon(e)

Salamangreat Raging Phoenix (57134592) ​

Source: Scripts/c57134592.lua

lua
function s.valcheck(e,c)
	local g=c:GetMaterial()
	if g:IsExists(Card.IsLinkCode,1,nil,57134592) then
		e:GetLabelObject():SetLabel(1)
	else

Salamangreat Sanctuary (1295111) ​

Source: Scripts/c1295111.lua

lua
end
function c1295111.lmfilter(c,lc,tp,og,lmat)
	return c:IsFaceup() and c:IsCanBeLinkMaterial(lc) and c:IsLinkCode(lc:GetCode()) and c:IsLinkType(TYPE_LINK)
		and Duel.GetLocationCountFromEx(tp,tp,c,lc)>0 and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_LMATERIAL)
		and (not og or og:IsContains(c)) and (not lmat or lmat==c)