Skip to content

Card.GetAttributeInGrave ​

Signature ​

lua
Card.GetAttributeInGrave(Card c, [int player]) -> int

Description ​

Returns the Attribute c is treated as having in the GY for player, defaulting to the current reason player.

Parameters ​

  • c Card
  • player int optional - default: current reason player

Returns ​

  • int

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3486

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 2 indexed script(s).
  • Search this function in the Script Explorer with Card.GetAttributeInGrave.
CardIDScriptDetected Calls
Aerial Eater28143384Scripts/c28143384.lua1
Transmodify5288597Scripts/c5288597.lua1

Script Examples ​

Aerial Eater (28143384) ​

Source: Scripts/c28143384.lua

lua
end
function s.rselect(g)
	return g:GetClassCount(Card.GetAttributeInGrave)==1
end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)

Transmodify (5288597) ​

Source: Scripts/c5288597.lua

lua
	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()
		and Duel.IsExistingMatchingCard(c5288597.spfilter,tp,LOCATION_DECK,0,1,nil,lv+1,rc,att,e,tp)