Skip to content

Card.IsAbleToExtraAsCost ​

Signature ​

lua
Card.IsAbleToExtraAsCost(Card c) -> bool

Description ​

Checks whether c can be returned to the Extra Deck as a cost.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 20 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAbleToExtraAsCost.
CardIDScriptDetected Calls
Yomagna the Fire Phantom17350692Scripts/c17350692.lua1
Vidolium the Unstable Power Patron of Unity70488851Scripts/c70488851.lua1
Gladiator Beast Gaiodiaz90957527Scripts/c90957527.lua1
Ritual Beast Ulti-Kimunfalcos58811192Scripts/c58811192.lua1
Gladiator Beast Gyzarus48156348Scripts/c48156348.lua1
Yoa the Plague Deity Ashtra1710647Scripts/c1710647.lua1
Palm Ryzeal61116514Scripts/c61116514.lua1
Gladiator Beast Andabata3779662Scripts/c3779662.lua1
Kuzuha the Bewitching Deity Ashtra65325949Scripts/c65325949.lua1
Akasuna the Battle Ashtra38331244Scripts/c38331244.lua1
Gladiator Beast Domitianus33652635Scripts/c33652635.lua1
Mikumari the Sealing Deity Ashtra38114652Scripts/c38114652.lua1
Gladiator Beast Dragases62000467Scripts/c62000467.lua1
Supreme King Dragon Dark Rebellion42160203Scripts/c42160203.lua1
Gladiator Beast Nerokius29357956Scripts/c29357956.lua1
Variety Comes Out65196094Scripts/c65196094.lua1
XYZ Combine95471006Scripts/c95471006.lua1
Dimension Explosion1896112Scripts/c1896112.lua1
Limit Overdrive35014241Scripts/c35014241.lua2
Legacy of a HERO25614410Scripts/c25614410.lua1

Script Examples ​

Yomagna the Fire Phantom (17350692) ​

Source: Scripts/c17350692.lua

lua
end
function s.sprfilter(c)
	return c:IsAbleToDeckAsCost() or c:IsAbleToExtraAsCost()
end
function s.gcheck(g)

Vidolium the Unstable Power Patron of Unity (70488851) ​

Source: Scripts/c70488851.lua

lua
end
function s.spfilter2(c)
	return c:IsFaceupEx() and c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ) and c:IsAbleToExtraAsCost()
end
function s.gcheck(g,ec,tp)

Gladiator Beast Gaiodiaz (90957527) ​

Source: Scripts/c90957527.lua

lua
function c90957527.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:IsAbleToExtraAsCost() end
	Duel.SendtoDeck(c,nil,SEQ_DECKTOP,REASON_COST)
end