Skip to content

Card.IsXyzSummonable ​

Signature ​

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

Description ​

Checks whether Xyz Monster c can be Xyz Summoned by the current reason player with an optional material group and min/max constraints. Use this in effect target and operation branches before calling Duel.XyzSummon. 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 - Xyz Monster being tested.
  • materials Group|nil optional - Optional material pool or exact material group supplied by the effect.
  • minc int optional - Optional minimum material count override. Defaults to 0.
  • maxc int optional - Optional maximum material count override. Defaults to 0.

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 32 indexed script(s).
  • Search this function in the Script Explorer with Card.IsXyzSummonable.
CardIDScriptDetected Calls
Barian's Chaos Draw97769122Scripts/c97769122.lua2
Bujinki Ahashima71095768Scripts/c71095768.lua2
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua1
Gagaga Girl - Cell Phone Subtraction48393693Scripts/c48393693.lua2
Salamangreat Zebroid X44161893Scripts/c44161893.lua1
Fire King Sanctuary65305978Scripts/c65305978.lua1
Chronomaly Esperanza Glyph50797682Scripts/c50797682.lua2
Raise Moon Wings Rapi47828069Scripts/c47828069.lua1
Numbers Last Hope4606229Scripts/c4606229.lua2
Mathmech Superfactorial87804365Scripts/c87804365.lua1
Gazer Shark23536866Scripts/c23536866.lua2
Shining Hope Road62829077Scripts/c62829077.lua2
Magicolloidal Sol67694706Scripts/c67694706.lua1
Magikey Locking40493210Scripts/c40493210.lua1
Ryzeal Plasma Hole33787730Scripts/c33787730.lua1
Exosister Returnia197042Scripts/c197042.lua1
Reincarnation Unveiling Mail68663427Scripts/c68663427.lua1
Artifacts Unleashed56611470Scripts/c56611470.lua2
Hublot the Dark Directory of Death29081251Scripts/c29081251.lua1
The Phantom Knights of Umbrage Veil85257384Scripts/c85257384.lua1
Full-Armored Xyz39733924Scripts/c39733924.lua1
Here There Be Dragons4575541Scripts/c4575541.lua1
Pendulum Xyz46005939Scripts/c46005939.lua2
K9-ØØ Lupis91025875Scripts/c91025875.lua1
...and 8 more

Script Examples ​

Barian's Chaos Draw (97769122) ​

Source: Scripts/c97769122.lua

lua
end
function c97769122.xyzfilter(c,mg)
	return c:IsSetCard(0x48) and c:IsXyzSummonable(mg,#mg,#mg)
end
function c97769122.xyztg(e,tp,eg,ep,ev,re,r,rp,chk)

Bujinki Ahashima (71095768) ​

Source: Scripts/c71095768.lua

lua
function c71095768.fselect(g,tp)
	return g:GetClassCount(Card.GetLocation)==g:GetCount() and g:GetClassCount(Card.GetLevel)==1
		and Duel.IsExistingMatchingCard(Card.IsXyzSummonable,tp,LOCATION_EXTRA,0,1,nil,g,2,2)
end
function c71095768.sptg(e,tp,eg,ep,ev,re,r,rp,chk)

Supreme King Dragon Lightwurm (41908872) ​

Source: Scripts/c41908872.lua

lua
end
function c41908872.xyzfilter(c)
	return c:IsSetCard(0x20f8) and c:IsXyzSummonable(nil)
end
function c41908872.thop1(e,tp,eg,ep,ev,re,r,rp)