Auxiliary.IsMaterialListCode
Signature
lua
Auxiliary.IsMaterialListCode(Card c, int code) -> bool|nilDescription
Checks whether code is present in c.material, normally populated by AddMaterialCodeList; returns true or nil.
Parameters
cCardcodeint
Returns
bool|nil
Source
Utilities/utility.lua:512
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 44 indexed script(s).
- Search this function in the Script Explorer with
Auxiliary.IsMaterialListCode.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| The Gaze of Timaeus | 22283204 | Scripts/c22283204.lua | 1 |
| Ojamassimilation | 2390019 | Scripts/c2390019.lua | 1 |
| Overload Future Fusion | 33099732 | Scripts/c33099732.lua | 1 |
| XYZ-Hyper Dragon Cannon | 75748977 | Scripts/c75748977.lua | 1 |
| Alba System Dogmatikalamity | 93053159 | Scripts/c93053159.lua | 1 |
| Ultimate Fusion | 71143015 | Scripts/c71143015.lua | 4 |
| Contact Gate | 41933425 | Scripts/c41933425.lua | 1 |
| Branded Fusion | 44362883 | Scripts/c44362883.lua | 1 |
| Neos Fusion | 14088859 | Scripts/c14088859.lua | 4 |
| Mirrorjade the Iceblade Dragon | 44146295 | Scripts/c44146295.lua | 1 |
| Fusion Draft | 55158350 | Scripts/c55158350.lua | 1 |
| Destruction Swordsman Fusion | 41940225 | Scripts/c41940225.lua | 1 |
| Branded Retribution | 17751597 | Scripts/c17751597.lua | 2 |
| Keeper of Dragon Magic | 48048590 | Scripts/c48048590.lua | 1 |
| Xtra HERO Infernal Devicer | 19324993 | Scripts/c19324993.lua | 1 |
| Branded Expulsion | 1041278 | Scripts/c1041278.lua | 2 |
| Springans Call! | 83199011 | Scripts/c83199011.lua | 1 |
| Springans Merrymaker | 48285768 | Scripts/c48285768.lua | 1 |
| The Golden Swordsoul | 82489470 | Scripts/c82489470.lua | 1 |
| XYZ Hyper Cannon | 21723081 | Scripts/c21723081.lua | 1 |
| Brightest, Blazing, Branded King | 19271881 | Scripts/c19271881.lua | 1 |
| Springans Kitt | 45484331 | Scripts/c45484331.lua | 1 |
| The Eye of Timaeus | 1784686 | Scripts/c1784686.lua | 1 |
| Decisive Battle of Golgonda | 70485614 | Scripts/c70485614.lua | 1 |
| ...and 20 more |
Script Examples
The Gaze of Timaeus (22283204)
Source: Scripts/c22283204.lua
lua
end
function s.fusfilter(c,e,tp,code,mc)
return c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,code)
and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0 and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false)
endOjamassimilation (2390019)
Source: Scripts/c2390019.lua
lua
end
function c2390019.spfilter(c,e,tp,fc)
return aux.IsMaterialListCode(fc,c:GetCode()) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c2390019.fselect(cg,tp,tg)Overload Future Fusion (33099732)
Source: Scripts/c33099732.lua
lua
end
function s.sfilter(c,tc)
return aux.IsMaterialListCode(tc,c:GetCode()) and c:IsAbleToGrave()
end
function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)