Card.IsRace
Signature
lua
Card.IsRace(Card c, int race) -> boolDescription
Checks whether c currently has at least one Race flag from race.
Parameters
cCardraceint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3547
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 2828 indexed script(s).
- Search this function in the Script Explorer with
Card.IsRace.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
end
function s.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsRace(RACE_WARRIOR+RACE_DRAGON) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
endAstrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
function s.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsRace(RACE_DRAGON) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
endLady's Dragonmaid (48658295)
Source: Scripts/c48658295.lua
lua
end
function s.filter2(c,e,tp,m,f,chkf)
return c:IsType(TYPE_FUSION) and c:IsRace(RACE_DRAGON) and (not f or f(c))
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_FUSION,tp,false,false) and c:CheckFusionMaterial(m,nil,chkf)
end