Card.IsType
Signature
lua
Card.IsType(Card c, int type) -> boolDescription
Checks whether c has at least one of the type flags in type.
Parameters
cCardtypeint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3536
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 5566 indexed script(s).
- Search this function in the Script Explorer with
Card.IsType.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
end
function s.posfilter(c)
return c:IsType(TYPE_EFFECT) and c:IsFaceup() and c:IsCanTurnSet()
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
function s.pfilter(c,tp)
return c:IsType(TYPE_PENDULUM) and not c:IsCode(id) and c:GetLeftScale()==1
and not c:IsForbidden() and c:CheckUniqueOnField(tp)
endArtmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
end
function s.cfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsDiscardable(REASON_SPSUMMON)
end
function s.spcon(e,c)