Skip to content

Card.IsCanOverlay ​

Signature ​

lua
Card.IsCanOverlay(Card c, [int player]) -> bool

Description ​

Checks whether c can be used as Xyz Material by player. player defaults to the current reason player. The core rejects Tokens, forbidden cards in invalid states, and cards controlled by the other player that cannot change control.

Parameters ​

  • c Card
  • player int optional - default: current reason player

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 177 indexed script(s).
  • Search this function in the Script Explorer with Card.IsCanOverlay.
CardIDScriptDetected Calls
Performage Cup Tricker6812770Scripts/c6812770.lua1
Jupredo the Shademachine Power Patron43871165Scripts/c43871165.lua1
Number 101: Silent Honor ARK - Soul Asylum2419596Scripts/c2419596.lua2
Super Quantal Mech Ship Magnacarrier10424147Scripts/c10424147.lua2
DoomZ XII Zero - Drastea92472273Scripts/c92472273.lua2
D/D/D Deviser King Deus Machinex46593546Scripts/c46593546.lua1
Number 38: Hope Harbinger Dragon Titanic Galaxy63767246Scripts/c63767246.lua1
Purrely25550531Scripts/c25550531.lua2
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua1
Number 4: Stealth Kragen67557908Scripts/c67557908.lua1
Purrely Sharely!?10780049Scripts/c10780049.lua1
Squeeze, the Full Moon of Raise Moon - JACKPOT!9484285Scripts/c9484285.lua1
Madolche Dessert51650038Scripts/c51650038.lua2
Materiactor Meltthrough66059345Scripts/c66059345.lua1
The Phantom Knights' Rank-Up-Magic Launch3298689Scripts/c3298689.lua2
Time Thief Redoer55285840Scripts/c55285840.lua1
Numeron Chaos Ritual41850466Scripts/c41850466.lua2
Bujincident11221418Scripts/c11221418.lua2
Zoodiac Combo73881652Scripts/c73881652.lua1
Disaster, Dragon Ruler of All Apocalypses67359907Scripts/c67359907.lua2
Doll House67331360Scripts/c67331360.lua1
Stealth Kragen Spawn94942656Scripts/c94942656.lua1
The Glitter of Raise Moon9362643Scripts/c9362643.lua2
Magician of Hope67865534Scripts/c67865534.lua2
...and 153 more

Script Examples ​

Performage Cup Tricker (6812770) ​

Source: Scripts/c6812770.lua

lua
	local c=e:GetHandler()
	if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and s.ovfilter(chkc) and chkc~=c end
	if chk==0 then return Duel.IsExistingTarget(s.ovfilter,tp,LOCATION_MZONE,0,1,c) and c:IsCanOverlay() end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
	Duel.SelectTarget(tp,s.ovfilter,tp,LOCATION_MZONE,0,1,1,c)

Jupredo the Shademachine Power Patron (43871165) ​

Source: Scripts/c43871165.lua

lua
end
function s.matfilter(c)
	return c:IsCanOverlay()
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)

Number 101: Silent Honor ARK - Soul Asylum (2419596) ​

Source: Scripts/c2419596.lua

lua
end
function s.filter2(c)
	return c:IsCanOverlay()
end
function s.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)