Card.GetRaceInGrave
Signature
lua
Card.GetRaceInGrave(Card c, [int reasonPlayer]) -> intDescription
Returns the Race c is treated as having in the GY for player, defaulting to the current reason player.
Parameters
cCardreasonPlayerintoptional
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3490
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1 indexed script(s).
- Search this function in the Script Explorer with
Card.GetRaceInGrave.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Transmodify | 5288597 | Scripts/c5288597.lua | 1 |
Script Examples
Transmodify (5288597)
Source: Scripts/c5288597.lua
lua
function c5288597.cfilter(c,e,tp)
local lv=c:GetOriginalLevel()
local rc=c:GetRaceInGrave()
local att=c:GetAttributeInGrave()
return bit.band(c:GetOriginalType(),TYPE_MONSTER)~=0 and lv>0 and c:IsFaceup() and c:IsAbleToGraveAsCost()