Card.IsCanBeRitualMaterial
Signature
lua
Card.IsCanBeRitualMaterial(Card c, [Card|nil sc]) -> boolDescription
Checks whether c can be used as Ritual Material for sc. Ritual scripts usually call this after choosing the Ritual Monster, filtering Duel.GetRitualMaterial's result with Card.IsCanBeRitualMaterial so monster-specific material restrictions are respected. Pass nil for sc only when checking the generic material pool before a specific Ritual Monster is known.
Parameters
cCardscCard|niloptional
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3696
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.IsCanBeRitualMaterial.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Meteoroa Drytron | 24166324 | Scripts/c24166324.lua | 2 |
| Nekroz Kaleidoscope | 51124303 | Scripts/c51124303.lua | 1 |
| Sonic Tracker | 17888577 | Scripts/c17888577.lua | 1 |
| Gishki Nekromirror | 36982581 | Scripts/c36982581.lua | 1 |
| Secrets of Dark Magic | 59514116 | Scripts/c59514116.lua | 1 |
| Meteonis Drytron | 22398665 | Scripts/c22398665.lua | 2 |
| Magikey Duo | 51510279 | Scripts/c51510279.lua | 1 |
| Blessing of the Voiceless Voice | 39114494 | Scripts/c39114494.lua | 1 |
| Heavy Interlock | 20071842 | Scripts/c20071842.lua | 1 |
| Magikey Maftea | 99426088 | Scripts/c99426088.lua | 1 |
| Nekroz Divinemirror | 50596425 | Scripts/c50596425.lua | 1 |
| Revendread Evolution | 7986397 | Scripts/c7986397.lua | 1 |
| Megalith Phuloch | 8805651 | Scripts/c8805651.lua | 1 |
| Dogmatikaturgy | 42158279 | Scripts/c42158279.lua | 1 |
| Dogmatikalamity | 31002402 | Scripts/c31002402.lua | 2 |
| Megalith Och | 36849933 | Scripts/c36849933.lua | 1 |
| Rise of the Salamangreat | 38784726 | Scripts/c38784726.lua | 1 |
| Megalith Ophiel | 63056220 | Scripts/c63056220.lua | 1 |
| Megalith Unformed | 69003792 | Scripts/c69003792.lua | 2 |
| Underworld Ritual of Prediction | 8428836 | Scripts/c8428836.lua | 2 |
| Megalith Hagith | 90444325 | Scripts/c90444325.lua | 1 |
| Fire Formation - Domei | 93754402 | Scripts/c93754402.lua | 1 |
| Ravenous Vendread | 13386407 | Scripts/c13386407.lua | 2 |
| Archfiend's Usurpation | 82997779 | Scripts/c82997779.lua | 1 |
| ...and 8 more |
Script Examples
Meteoroa Drytron (24166324)
Source: Scripts/c24166324.lua
lua
local tc=tg:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)Nekroz Kaleidoscope (51124303)
Source: Scripts/c51124303.lua
lua
return c:IsSetCard(0xb4) and bit.band(c:GetType(),0x81)==0x81 and (not c.mat_filter or c.mat_filter(mc,tp)) and (not c.mat_group_check or c.mat_group_check(mg,tp))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true)
and mc:IsCanBeRitualMaterial(c)
end
function c51124303.rfilter(c,mc)Sonic Tracker (17888577)
Source: Scripts/c17888577.lua
lua
local tc=tg:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp)