Skip to content

Card.IsAbleToRemoveAsCost ​

Signature ​

lua
Card.IsAbleToRemoveAsCost(Card c, [int pos]) -> bool

Description ​

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 ​

  • c Card
  • pos int optional - 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.
CardIDScriptDetected Calls
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Astrograph Sorcerer76794549Scripts/c76794549.lua2
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua1
Ashtraja Susanoo17020474Scripts/c17020474.lua1
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua1
Ehther the Heavenly Monarch96570609Scripts/c96570609.lua1
Prank-Kids Weather Washer44509529Scripts/c44509529.lua1
Converging Wishes20007374Scripts/c20007374.lua1
Predaplant Bal Teah66787942Scripts/c66787942.lua2
D/D/D/D Dimensional King Arc Crisis71398055Scripts/c71398055.lua1
Dark End Evaporation Dragon62002838Scripts/c62002838.lua1
Nekroz Kaleidoscope51124303Scripts/c51124303.lua2
Junoldo the Shadespirit Power Patron10266279Scripts/c10266279.lua2
Enlightenment Dragon46186135Scripts/c46186135.lua1
Ultimate Crystal Rainbow Dragon Overdrive84544192Scripts/c84544192.lua1
Tellusion the Magna Warrior24431911Scripts/c24431911.lua1
Ashened to Endlessness34813443Scripts/c34813443.lua2
Chronograph Sorcerer12289247Scripts/c12289247.lua2
W:P Fancy Ball4993187Scripts/c4993187.lua1
Cerynemesia, Mystical Beast of the Forest43632709Scripts/c43632709.lua1
Light End Sublimation Dragon35614780Scripts/c35614780.lua1
Super Soldier Ritual14094090Scripts/c14094090.lua2
Prank-Kids Rocket Ride18514525Scripts/c18514525.lua1
Chef de Nouvelles29251488Scripts/c29251488.lua1
...and 698 more

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())
end

Accel 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)