Card.IsAbleToHand
Signature
lua
Card.IsAbleToHand(Card c, [int player]) -> boolDescription
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
cCardplayerintoptional - 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.
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)