Skip to content

Card.IsAbleToHand ​

Signature ​

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

Description ​

Checks whether c can be returned or added to the hand by the current reason player. An optional player argument can be passed when a specific player is performing the action.

Parameters ​

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

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 2791 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAbleToHand.
CardIDScriptDetected Calls
Pendulum Evolution55795155Scripts/c55795155.lua1
Astrograph Sorcerer76794549Scripts/c76794549.lua1
Spellbook of the Grand Circle11911336Scripts/c11911336.lua1
Melffy Playtime Surprise58036097Scripts/c58036097.lua1
Ashtraja Susanoo17020474Scripts/c17020474.lua2
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua2
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
Mementotlan Fusion66518509Scripts/c66518509.lua1
Meteoroa Drytron24166324Scripts/c24166324.lua1
Gem-Knight Dispersion24220368Scripts/c24220368.lua1
Performage Cup Tricker6812770Scripts/c6812770.lua1
Ghostrick Renovation61818176Scripts/c61818176.lua1
Magnet Bonding65514302Scripts/c65514302.lua2
Hecahands Tartaros57809669Scripts/c57809669.lua1
Ursarctic Polari27693363Scripts/c27693363.lua2
Odd-Eyes Revolution Dragon16306932Scripts/c16306932.lua1
Aiwass, Divine Spirit of the Law84288367Scripts/c84288367.lua1
GMX 55th Experiment Report38984832Scripts/c38984832.lua2
D/D Count Surveyor5997110Scripts/c5997110.lua1
Nekroz Kaleidoscope51124303Scripts/c51124303.lua1
Enneacraft - Aiza.LEON82359538Scripts/c82359538.lua2
Junoldo the Shadespirit Power Patron10266279Scripts/c10266279.lua1
Enlightenment Dragon46186135Scripts/c46186135.lua2
Chimera Fusion63136489Scripts/c63136489.lua1
...and 2767 more

Script Examples ​

Pendulum Evolution (55795155) ​

Source: Scripts/c55795155.lua

lua
end
function c55795155.thfilter(c,code)
	return c:IsType(TYPE_PENDULUM) and c:IsAttack(2500) and not c:IsCode(code) and c:IsAbleToHand()
end
function c55795155.thtg(e,tp,eg,ep,ev,re,r,rp,chk)

Astrograph Sorcerer (76794549) ​

Source: Scripts/c76794549.lua

lua
end
function c76794549.thfilter2(c,code)
	return c:IsCode(code) and c:IsAbleToHand()
end
function c76794549.spop(e,tp,eg,ep,ev,re,r,rp)

Spellbook of the Grand Circle (11911336) ​

Source: Scripts/c11911336.lua

lua
end
function s.thfilter(c)
	return c:IsSetCard(0xbf) and c:IsType(TYPE_MONSTER) and c:IsFaceupEx() and c:IsAbleToHand()
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)