Skip to content

Auxiliary.MustMaterialCheck ​

Signature ​

lua
Auxiliary.MustMaterialCheck(Card|Group|nil v, int tp, int code) -> bool

Description ​

Checks whether tp's required-material effects of type code are satisfied. When v is nil, the helper succeeds only if Duel.GetMustMaterial(tp, code) is empty, except for the hard-coded Xyz and Synchro material exceptions present in the utility script. When v is supplied, it returns Duel.CheckMustMaterial(tp, v, code).

Parameters ​

  • v Card|Group|nil
  • tp int
  • code int

Returns ​

  • bool

Source ​

  • Utilities/procedure.lua:2274

Used By ​

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

  • Detected in 148 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.MustMaterialCheck.
CardIDScriptDetected Calls
Astrograph Sorcerer76794549Scripts/c76794549.lua2
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua2
El Shaddoll Apkallone50907446Scripts/c50907446.lua2
Ghostrick Renovation61818176Scripts/c61818176.lua2
Resurgam Xyz49082032Scripts/c49082032.lua2
Converging Wishes20007374Scripts/c20007374.lua2
Shining Draw35906693Scripts/c35906693.lua2
Junoldo the Shadespirit Power Patron10266279Scripts/c10266279.lua2
Flower Cardian Peony with Butterfly57261568Scripts/c57261568.lua1
The Gaze of Timaeus22283204Scripts/c22283204.lua2
Chronograph Sorcerer12289247Scripts/c12289247.lua2
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua1
El Shaddoll Meshachrer32467459Scripts/c32467459.lua2
Jupredo the Shademachine Power Patron43871165Scripts/c43871165.lua2
Frightfur Meister77522571Scripts/c77522571.lua2
K9-EW Special Release Experiment26585784Scripts/c26585784.lua1
Power Patron DoomZ81650695Scripts/c81650695.lua2
Rank-Up-Magic Astral Force45950291Scripts/c45950291.lua2
The Phantom Knights' Rank-Up-Magic Requiem62104532Scripts/c62104532.lua4
K9-X Forced Release53792930Scripts/c53792930.lua2
Flame Swordsrealm73714736Scripts/c73714736.lua3
Frightfur March74416026Scripts/c74416026.lua1
Alba System Dogmatikalamity93053159Scripts/c93053159.lua1
Phantom Knights' Rank-Up-Magic Force88504133Scripts/c88504133.lua2
...and 124 more

Script Examples ​

Astrograph Sorcerer (76794549) ​

Source: Scripts/c76794549.lua

lua
end
function c76794549.hntg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_FMATERIAL) end
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end

Accel Synchro Stardust Dragon (30983281) ​

Source: Scripts/c30983281.lua

lua
	if chk==0 then return Duel.IsPlayerCanSpecialSummonCount(tp,2)
		and (not ect1 or ect1>1) and (not ect2 or ect2>1) and (b1 or b2)
		and aux.MustMaterialCheck(nil,tp,EFFECT_MUST_BE_SMATERIAL) end
	local rg=Group.CreateGroup()
	local rc=nil

El Shaddoll Apkallone (50907446) ​

Source: Scripts/c50907446.lua

lua
	local sg=Group.FromCards(c,mc)
	if sg:IsExists(aux.TuneMagicianCheckX,1,nil,sg,EFFECT_TUNE_MAGICIAN_F) then return false end
	if not aux.MustMaterialCheck(sg,tp,EFFECT_MUST_BE_FMATERIAL) then return false end
	if aux.FCheckAdditional and not aux.FCheckAdditional(tp,sg,fc)
		or aux.FGoalCheckAdditional and not aux.FGoalCheckAdditional(tp,sg,fc) then return false end