Skip to content

Card.IsLinkSummonable ​

Signature ​

lua
Card.IsLinkSummonable(Card c, Group|nil materials, [Card|nil lcard], [int minc], [int maxc]) -> bool

Description ​

Checks whether Link Monster c can be Link Summoned by the current reason player. Optional materials, lcard, minc, and maxc restrict the Link Material pool and material count used by the core check. Use this in effect target and operation branches before calling Duel.LinkSummon. minc and maxc default to 0 when omitted, leaving the registered procedure's own count rules in control. The core rejects this check during the Damage Step.

Parameters ​

  • c Card - Link Monster being tested.
  • materials Group|nil - Optional temporary material pool. nil lets the registered procedure collect its normal pool.
  • lcard Card|nil optional - Optional fixed material that the final selected group must include.
  • minc int optional - Runtime minimum material-card count. default: 0
  • maxc int optional - Runtime maximum material-card count. default: 0

Returns ​

  • bool - true if c has a legal Link Summon under the supplied temporary limits.

Source ​

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

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.IsLinkSummonable.
CardIDScriptDetected Calls
W:P Fancy Ball4993187Scripts/c4993187.lua1
Trickstar Diffusion63181559Scripts/c63181559.lua1
Link into the VRAINS!28827503Scripts/c28827503.lua1
Angello Vaalmonica3048768Scripts/c3048768.lua1
Code of Soul74652966Scripts/c74652966.lua1
Yum☆Yum☆Yummys56870908Scripts/c56870908.lua1
Salamangreat Burning Shell28534130Scripts/c28534130.lua1
Unchained Soul of Rage67680512Scripts/c67680512.lua1
Tri-Brigade Revolt40975243Scripts/c40975243.lua1
Sky Striker Special Maneuver - Lemnisgate!34433770Scripts/c34433770.lua1
Purification Power Patron31822037Scripts/c31822037.lua2
Unchained Syncretism93898740Scripts/c93898740.lua1
Unchained Soul of Anguish93084621Scripts/c93084621.lua1
Unchained Soul of Disaster89019964Scripts/c89019964.lua1
Outburst Dragon87263576Scripts/c87263576.lua1
I:P Masquerena65741786Scripts/c65741786.lua2
Basiltrice, Familiar of the Evil Eye65351555Scripts/c65351555.lua1
Vaalmonica Creation98167225Scripts/c98167225.lua1
Prank-Kids Plan15447747Scripts/c15447747.lua1
Evil★Twin Challenge98360333Scripts/c98360333.lua1
World Legacy Awakens12989604Scripts/c12989604.lua1

Script Examples ​

W:P Fancy Ball (4993187) ​

Source: Scripts/c4993187.lua

lua
end
function s.lkfilter(c)
	return c:IsLinkSummonable(nil)
end
function s.mattg(e,c)

Trickstar Diffusion (63181559) ​

Source: Scripts/c63181559.lua

lua
end
function s.filter(c)
	return c:IsLinkSummonable(nil) and c:IsSetCard(0xfb)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)

Source: Scripts/c28827503.lua

lua
end
function c28827503.lkfilter(c,mc)
	return c:IsLinkSummonable(nil,mc)
end
function c28827503.spfilter(c,e,tp)