Card.GetType
Signature
lua
Card.GetType(Card c) -> intDescription
Returns c's current type mask, including temporary type changes applied to the card.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3450
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 253 indexed script(s).
- Search this function in the Script Explorer with
Card.GetType.
Script Examples
Meteoroa Drytron (24166324)
Source: Scripts/c24166324.lua
lua
end
function s.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,greater_or_equal,chk)
if bit.band(c:GetType(),0x81)~=0x81 or (filter and not filter(c,e,tp,chk)) or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
local mg=m1:Filter(Card.IsCanBeRitualMaterial,c,c)
if m2 thenPere-Zenet Em Heru (46273941)
Source: Scripts/c46273941.lua
lua
end
function s.spfilter(c,e,tp,m)
if bit.band(c:GetType(),0x81)~=0x81 or not c:IsSetCard(0x1eb)
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
if c.mat_filter thenAm Duazenet (45151304)
Source: Scripts/c45151304.lua
lua
end
function s.spfilter(c,e,tp,m)
if bit.band(c:GetType(),0x81)~=0x81 or not c:IsSetCard(0x1eb)
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) then return false end
if c.mat_filter then