Auxiliary.MustMaterialCheck
Signature
lua
Auxiliary.MustMaterialCheck(Card|Group|nil v, int tp, int code) -> boolDescription
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
vCard|Group|niltpintcodeint
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.
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)
endAccel 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=nilEl 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