Card.IsAbleToRemoveAsCost
Signature
lua
Card.IsAbleToRemoveAsCost(Card c, [int pos]) -> boolDescription
Checks whether c can be banished as a cost by the current reason player. pos controls the banished position and defaults to POS_FACEUP.
Parameters
cCardposintoptional - default: POS_FACEUP
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3649
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 722 indexed script(s).
- Search this function in the Script Explorer with
Card.IsAbleToRemoveAsCost.
Script Examples
Lady's Dragonmaid (48658295)
Source: Scripts/c48658295.lua
lua
end
function s.fusfilter(c)
return c:IsSetCard(0x133) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end
function s.fselect(g)Astrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
function c76794549.cfilter(c)
return c:IsSetCard(0x10f2,0x2073,0x2017,0x1046)
and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and (not c:IsLocation(LOCATION_MZONE) or c:IsFaceup())
endAccel Synchro Stardust Dragon (30983281)
Source: Scripts/c30983281.lua
lua
end
function c30983281.excostfilter(c,tp)
return c:IsAbleToRemoveAsCost() and c:IsHasEffect(84012625,tp)
end
function c30983281.syncheck(g,tp,syncard)