Card.IsCanBeLinkMaterial
Signature
lua
Card.IsCanBeLinkMaterial(Card c, [Card scard]) -> boolDescription
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
cCardscardCardoptional - 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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Levia-Dragoon - Daedalus | 78579058 | Scripts/c78579058.lua | 2 |
| Azure Ocean Dragon Lord - Neo-Daedalus Rage | 41570943 | Scripts/c41570943.lua | 2 |
| Salamangreat Sanctuary | 1295111 | Scripts/c1295111.lua | 1 |
| Code of Soul | 74652966 | Scripts/c74652966.lua | 1 |
| Salamangreat Transcendence | 54529134 | Scripts/c54529134.lua | 1 |
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)