Card.IsAbleToRemove
Signature
lua
Card.IsAbleToRemove(Card c, [int player], [int pos], [int reason]) -> boolDescription
Checks whether c can be banished by player in position pos for reason. player defaults to the current reason player, pos defaults to POS_FACEUP, and reason defaults to REASON_EFFECT.
Parameters
cCardplayerintoptionalposintoptionalreasonintoptional
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3643
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 804 indexed script(s).
- Search this function in the Script Explorer with
Card.IsAbleToRemove.
Script Examples
Ashtraja Susanoo (17020474)
Source: Scripts/c17020474.lua
lua
end
function s.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=Duel.GetMatchingGroupCount(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
if chk==0 then return Duel.IsExistingMatchingCard(s.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)Deftero Enneacraft - "alazoneIA" (92171126)
Source: Scripts/c92171126.lua
lua
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
if Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_HAND,1,nil) then
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,0,LOCATION_HAND,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)Mixousia the Confounder (80843006)
Source: Scripts/c80843006.lua
lua
end
function s.filter1(c,e)
return c:IsType(TYPE_MONSTER) and c:IsCanBeFusionMaterial() and c:IsAbleToRemove() and not c:IsImmuneToEffect(e)
end
function s.filter2(c,e,tp,m,f,gc,chkf)