Card.GetRace
Signature
lua
Card.GetRace(Card c) -> intDescription
Returns c's current Race value. Cards with multiple Races can return a bitmask containing more than one Race.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3487
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 153 indexed script(s).
- Search this function in the Script Explorer with
Card.GetRace.
Script Examples
Surprise Fusion (35167375)
Source: Scripts/c35167375.lua
lua
end
function s.rafilter(c)
return c:IsFaceup() and ((RACE_ALL&~c:GetRace())~=0 or (ATTRIBUTE_ALL&~c:GetAttribute())~=0)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)Yomagna the Fire Phantom (17350692)
Source: Scripts/c17350692.lua
lua
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local race=Duel.AnnounceRace(tp,1,RACE_ALL&~e:GetHandler():GetRace())
e:SetLabel(race)
endFavorite HERO Flame Wingman (13243124)
Source: Scripts/c13243124.lua
lua
function s.ffilter(c,fc,sub,mg,sg)
return not sg or sg:FilterCount(aux.TRUE,c)==0
or (sg:IsExists(Card.IsRace,1,c,c:GetRace())
and not sg:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute()))
end