Skip to content

Card.IsSummonLocation ​

Signature ​

lua
Card.IsSummonLocation(Card c, int loc) -> bool

Description ​

Checks whether c's recorded Summon location contains loc. This reads the Summon information, not c's current location.

Parameters ​

  • c Card - Card whose recorded Summon location is checked.
  • loc int - Location mask to test against the stored Summon location, such as LOCATION_EXTRA or LOCATION_GRAVE.

Returns ​

  • bool - True if any bit in loc is present in c's recorded Summon location.

Source ​

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

Used By ​

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

  • Detected in 212 indexed script(s).
  • Search this function in the Script Explorer with Card.IsSummonLocation.
CardIDScriptDetected Calls
Pendulum Evolution55795155Scripts/c55795155.lua1
Melffy Playtime Surprise58036097Scripts/c58036097.lua1
Tohushaddoll Grysta95072744Scripts/c95072744.lua1
Teleport Fusion36494597Scripts/c36494597.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Performapal Celestial Magician58092907Scripts/c58092907.lua1
Cyberse Reminder56337500Scripts/c56337500.lua1
Clown Crew Soiree Operations70058649Scripts/c70058649.lua1
Number 99: Utopia Dragonar95134948Scripts/c95134948.lua1
Clown Crew Malabarisme83232904Scripts/c83232904.lua1
Heavy Interlock20071842Scripts/c20071842.lua2
Veda Kalarcanum40785230Scripts/c40785230.lua1
Clear Wing Fast Dragon90036274Scripts/c90036274.lua1
Gunkan Sushipyard Seaside Supper Spot62200831Scripts/c62200831.lua1
Neo Super Quantal Mech King Blaster Magna95493471Scripts/c95493471.lua1
Fydraulis Harmonia70088809Scripts/c70088809.lua1
Squeeze, the Full Moon of Raise Moon - JACKPOT!9484285Scripts/c9484285.lua1
Galaxy-Eyes Photon Change Dragon54725177Scripts/c54725177.lua1
Megaroid City44139064Scripts/c44139064.lua1
Masked HERO Furnace58288218Scripts/c58288218.lua1
Dual Avatar Feet - Armored Un-Gyo7631534Scripts/c7631534.lua1
Zefra Metaltron85216896Scripts/c85216896.lua3
Rapid Trigger67526112Scripts/c67526112.lua2
Branded Fusion44362883Scripts/c44362883.lua1
...and 188 more

Script Examples ​

Pendulum Evolution (55795155) ​

Source: Scripts/c55795155.lua

lua
end
function c55795155.checkfilter(c)
	return c:IsType(TYPE_PENDULUM) and c:IsPreviousPosition(POS_FACEDOWN) and c:IsSummonLocation(LOCATION_EXTRA)
end
function c55795155.checkop(e,tp,eg,ep,ev,re,r,rp)

Melffy Playtime Surprise (58036097) ​

Source: Scripts/c58036097.lua

lua
end
function s.tg(e,c)
	return c:IsSummonLocation(LOCATION_EXTRA) and c:IsSetCard(0x146)
end
function s.efilter(e,re)

Tohushaddoll Grysta (95072744) ​

Source: Scripts/c95072744.lua

lua
end
function s.counterfilter(c)
	return not c:IsSummonLocation(LOCATION_EXTRA) or c:IsSetCard(0x9d) and c:IsFaceup()
end
function s.rfilter(c)