Skip to content

Card.IsCanBeLinkMaterial ​

Signature ​

lua
Card.IsCanBeLinkMaterial(Card c, [Card scard]) -> bool

Description ​

Checks whether c can be used as Link Material, optionally for Link Monster scard. Standard Link procedures call this before applying their own material filters.

Parameters ​

  • c Card
  • scard Card optional - Link Monster that would use c as material.

Returns ​

  • bool - true if c may currently be used as Link Material for scard or for a generic Link Material check.

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 5 indexed script(s).
  • Search this function in the Script Explorer with Card.IsCanBeLinkMaterial.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua2
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua2
Salamangreat Sanctuary1295111Scripts/c1295111.lua1
Code of Soul74652966Scripts/c74652966.lua1
Salamangreat Transcendence54529134Scripts/c54529134.lua1

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
function s.LConditionFilter(c,f,lc,e)
	return (c:IsFaceup() or not c:IsOnField() or e:IsHasProperty(EFFECT_FLAG_SET_AVAILABLE))
		and c:IsCanBeLinkMaterial(lc) and (not f or f(c))
end
function s.LExtraFilter(c,f,lc,tp)

Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943) ​

Source: Scripts/c41570943.lua

lua
function s.LConditionFilter(c,f,lc,e)
	return (c:IsFaceup() or not c:IsOnField() or e:IsHasProperty(EFFECT_FLAG_SET_AVAILABLE))
		and c:IsCanBeLinkMaterial(lc) and (not f or f(c))
end
function s.LExtraFilter(c,f,lc,tp)

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)