Skip to content

Card.IsAbleToHandAsCost ​

Signature ​

lua
Card.IsAbleToHandAsCost(Card c) -> bool

Description ​

Checks whether c can be returned to the hand as a cost. This uses c's actual return destination and returns false when the card would go somewhere other than the player's hand, such as the Extra Deck.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 41 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAbleToHandAsCost.
CardIDScriptDetected Calls
Astrazma Urania18738846Scripts/c18738846.lua1
Sauravis, Dragon Sage of the Voiceless Voice88284599Scripts/c88284599.lua1
Gouki The Master Ogre30286474Scripts/c30286474.lua1
Whisker Blitzclique85523502Scripts/c85523502.lua1
Cyber Jormungardr19715246Scripts/c19715246.lua1
Grapha, Dragon Lord of Dark World34230233Scripts/c34230233.lua1
Mind Shuffle24749710Scripts/c24749710.lua1
Swap Frog9126351Scripts/c9126351.lua2
Blitzclique - Breakaway64049762Scripts/c64049762.lua1
Yoa the Plague Deity Ashtra1710647Scripts/c1710647.lua1
Battlewasp - Sachi the Ceremonial Bow71456737Scripts/c71456737.lua1
U.A. Libero Spiker11637481Scripts/c11637481.lua1
Kuzuha the Bewitching Deity Ashtra65325949Scripts/c65325949.lua1
Akasuna the Battle Ashtra38331244Scripts/c38331244.lua1
Mikumari the Sealing Deity Ashtra38114652Scripts/c38114652.lua1
Reign-Beaux, Overking of Dark World41406613Scripts/c41406613.lua1
U.A. Midfielder72491806Scripts/c72491806.lua1
Blitzclique Return Stroke23526128Scripts/c23526128.lua1
U.A. Blockbacker34614289Scripts/c34614289.lua1
Altergeist Silquitous89538537Scripts/c89538537.lua1
U.A. Goalkeeper9485511Scripts/c9485511.lua1
U.A. Perfect Ace82419869Scripts/c82419869.lua1
Artifact Chakram8873112Scripts/c8873112.lua1
Performapal Sky Pupil122520Scripts/c122520.lua1
...and 17 more

Script Examples ​

Astrazma Urania (18738846) ​

Source: Scripts/c18738846.lua

lua
end
function s.spfilter(c,tp)
	return c:IsAbleToHandAsCost() and Duel.GetMZoneCount(tp,c)>0
end
function s.spcon(e,c)

Sauravis, Dragon Sage of the Voiceless Voice (88284599) ​

Source: Scripts/c88284599.lua

lua
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
	local c=e:GetHandler()
	if chk==0 then return c:IsAbleToHandAsCost() end
	Duel.SendtoHand(c,nil,REASON_COST)
end

Gouki The Master Ogre (30286474) ​

Source: Scripts/c30286474.lua

lua
end
function c30286474.costfilter(c,g)
	return c:IsFaceup() and c:IsSetCard(0xfc) and g:IsContains(c) and c:IsAbleToHandAsCost()
end
function c30286474.distg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)