Skip to content

Card.IsAbleToExtra ​

Signature ​

lua
Card.IsAbleToExtra(Card c) -> bool

Description ​

Checks whether c can be returned to the Extra Deck by the current reason player.

Parameters ​

  • c Card

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3641

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 78 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAbleToExtra.
CardIDScriptDetected Calls
Ashtraja Susanoo17020474Scripts/c17020474.lua1
The Gaze of Timaeus22283204Scripts/c22283204.lua1
Plunder Patrollship Jord85969517Scripts/c85969517.lua1
Clock Lizard51476410Scripts/c51476410.lua1
Exosisters Magnifica59242457Scripts/c59242457.lua1
Malefic Paradigm Dragon16958382Scripts/c16958382.lua1
Galaxy-Eyes Cipher X Dragon28346136Scripts/c28346136.lua1
Angelechy Problem17782288Scripts/c17782288.lua1
Madolche Dessert51650038Scripts/c51650038.lua1
Lunalight Perfume Dancer81196066Scripts/c81196066.lua2
Joyous Melffys53054164Scripts/c53054164.lua1
Cynet Circuit82886276Scripts/c82886276.lua1
Fusion Substitute74335036Scripts/c74335036.lua1
Performage Ball Balancer92530005Scripts/c92530005.lua1
Shade the Obscure77157846Scripts/c77157846.lua1
Antihuman Intelligence ME-PSY-YA58844135Scripts/c58844135.lua1
Artmage Peripeteia -Turmoil-17719582Scripts/c17719582.lua1
Sweet Dreams, Nemleria44843954Scripts/c44843954.lua1
Gaiarmor Dragonshell49816630Scripts/c49816630.lua1
Super All In!16780318Scripts/c16780318.lua1
Crimson Dragon Quetzalcoatl29053656Scripts/c29053656.lua1
Branded Retribution17751597Scripts/c17751597.lua2
Salamangreat Burning Shell28534130Scripts/c28534130.lua1
Performapal Odd-Eyes Butler56677752Scripts/c56677752.lua1
...and 54 more

Script Examples ​

Ashtraja Susanoo (17020474) ​

Source: Scripts/c17020474.lua

lua
	if chk==0 then return Duel.IsExistingTarget(s.tgfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,e,tp) end
	local ct=1
	if c:IsAbleToExtra() then ct=2 end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
	local g=Duel.SelectTarget(tp,s.tgfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,ct,nil,e,tp)

The Gaze of Timaeus (22283204) ​

Source: Scripts/c22283204.lua

lua
	local code=tc:GetCode()
	if tc and tc:IsRelateToChain() and aux.NecroValleyFilter()(tc) and not tc:IsImmuneToEffect(e)
		and (tc:IsAbleToDeck() or tc:IsAbleToExtra()) then
		Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
		local sg=Duel.SelectMatchingCard(tp,s.fusfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,code,tc)

Plunder Patrollship Jord (85969517) ​

Source: Scripts/c85969517.lua

lua
	local c=e:GetHandler()
	if chk==0 then
		if not c:IsAbleToExtra() or Duel.GetMZoneCount(tp,c)<=0
			or Duel.GetMZoneCount(1-tp,c,tp)<=0 or Duel.IsPlayerAffectedByEffect(tp,59822133) then
			return false