Skip to content

Card.IsAbleToGraveAsCost ​

Signature ​

lua
Card.IsAbleToGraveAsCost(Card c) -> bool

Description ​

Checks whether c can be sent to the Graveyard as a cost.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 705 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAbleToGraveAsCost.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua1
Eternal Favorite87532344Scripts/c87532344.lua1
Ursarctic Polari27693363Scripts/c27693363.lua1
Barian's Chaos Draw97769122Scripts/c97769122.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Transonic Bird34072799Scripts/c34072799.lua1
Red-Eyes Slash Dragon21140872Scripts/c21140872.lua1
Regenesis Birth27781371Scripts/c27781371.lua2
Isolde, Two Tales of the Noble Knights59934749Scripts/c59934749.lua1
Black Dragon Ninja56562619Scripts/c56562619.lua2
Flame Swordsrealm73714736Scripts/c73714736.lua1
Power Tool Braver Dragon63265554Scripts/c63265554.lua1
Alba System Dogmatikalamity93053159Scripts/c93053159.lua1
Meklord Astro Mekanikle63468625Scripts/c63468625.lua2
Ursarctic Grand Chariot80086070Scripts/c80086070.lua1
Zoroa, the Magistus Verethragna37260677Scripts/c37260677.lua1
Koa'ki Meiru Rooklord10060427Scripts/c10060427.lua1
Emperor Charles the Great97864322Scripts/c97864322.lua1
Toadally Awesome90809975Scripts/c90809975.lua1
Ojamatch38395123Scripts/c38395123.lua1
Witchcrafter Pittore95245544Scripts/c95245544.lua2
Witchcrafter Genni64756282Scripts/c64756282.lua2
All-Eyes Phantom Dragon70335319Scripts/c70335319.lua1
...and 681 more

Script Examples ​

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
end
function s.costfilter(c)
	return c:IsFaceup() and c:IsCode(22702055) and c:IsAbleToGraveAsCost()
end
function s.drcon(e,tp,eg,ep,ev,re,r,rp)

Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943) ​

Source: Scripts/c41570943.lua

lua
end
function s.costfilter(c)
	return c:IsFaceup() and c:IsCode(22702055) and c:IsAbleToGraveAsCost()
end
function s.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)

Eternal Favorite (87532344) ​

Source: Scripts/c87532344.lua

lua
	local c=e:GetHandler()
	if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,e:GetHandler())
		and c:IsAbleToGraveAsCost() and c:IsStatus(STATUS_EFFECT_ENABLED) end
	Duel.DiscardHand(tp,Card.IsDiscardable,1,1,REASON_COST+REASON_DISCARD)
	Duel.SendtoGrave(c,REASON_COST)