Skip to content

Card.IsAbleToRemove ​

Signature ​

lua
Card.IsAbleToRemove(Card c, [int player], [int pos], [int reason]) -> bool

Description ​

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 ​

  • c Card
  • player int optional
  • pos int optional
  • reason int optional

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.
CardIDScriptDetected Calls
Ashtraja Susanoo17020474Scripts/c17020474.lua5
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua2
Mixousia the Confounder80843006Scripts/c80843006.lua1
Invoked Sorath43989315Scripts/c43989315.lua1
Destratification Dino Stratiae3841104Scripts/c3841104.lua2
Hecahands Tartaros57809669Scripts/c57809669.lua2
Ursarctic Polari27693363Scripts/c27693363.lua1
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua2
Tohushaddoll Grysta95072744Scripts/c95072744.lua1
PSY-Framelord Omega74586817Scripts/c74586817.lua3
Teleport Fusion36494597Scripts/c36494597.lua2
Junoldo the Shadespirit Power Patron10266279Scripts/c10266279.lua1
Enlightenment Dragon46186135Scripts/c46186135.lua3
Chimera Fusion63136489Scripts/c63136489.lua1
Shooting Majestic Star Dragon40939228Scripts/c40939228.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Kewl Tune Crackle39576656Scripts/c39576656.lua4
Albion the Branded Dragon87746184Scripts/c87746184.lua2
PSY-Framelord Zeta37192109Scripts/c37192109.lua2
Vidolium the Unstable Power Patron of Unity70488851Scripts/c70488851.lua2
A Bao A Qu, the Lightless Shadow4731783Scripts/c4731783.lua1
Camelot, Realm of Noble Knights and Noble Arms15635751Scripts/c15635751.lua1
Earthbound Servant Geo Gremlin8690387Scripts/c8690387.lua1
Trickstar Diffusion63181559Scripts/c63181559.lua1
...and 780 more

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)