Skip to content

Card.GetSummonType ​

Signature ​

lua
Card.GetSummonType(Card c) -> int

Description ​

Returns c's recorded Summon Type bits masked to the default Summon Type field.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 26 indexed script(s).
  • Search this function in the Script Explorer with Card.GetSummonType.
CardIDScriptDetected Calls
Ostinato9113513Scripts/c9113513.lua1
Gizmek Yata, the Gleaming Vanguard13224603Scripts/c13224603.lua1
Argostars - Lightning Tydeu65889305Scripts/c65889305.lua1
Millennium Revelation41044418Scripts/c41044418.lua1
Trishula, the Dragon of Icy Imprisonment15661378Scripts/c15661378.lua1
Guoglim, Spear of the Ghoti2405631Scripts/c2405631.lua1
Metamorphortress43959432Scripts/c43959432.lua2
T.G. Recipro Dragonfly62560742Scripts/c62560742.lua1
Argostars - Slayer Eteo38379052Scripts/c38379052.lua1
Kuebiko20087414Scripts/c20087414.lua1
World Legacy - "World Armor"83477829Scripts/c83477829.lua1
Statue of Anguish Pattern23626223Scripts/c23626223.lua2
Silhouhatte Trick24440742Scripts/c24440742.lua1
Exodia, the Legendary Defender5008836Scripts/c5008836.lua1
Zoma the Earthbound Spirit88001391Scripts/c88001391.lua1
Bujin Hirume9418365Scripts/c9418365.lua1
Blink Out28279365Scripts/c28279365.lua1
Argostars - Swift Capane91284003Scripts/c91284003.lua1
Krystal Avatar20960340Scripts/c20960340.lua1
Extraceratops38383368Scripts/c38383368.lua1
Dark Lucius LV612817939Scripts/c12817939.lua1
Cyber Shadow Gardna90440725Scripts/c90440725.lua2
Crusadia Krawler55838342Scripts/c55838342.lua1
The Ascended of Thunder70493141Scripts/c70493141.lua1
...and 2 more

Script Examples ​

Ostinato (9113513) ​

Source: Scripts/c9113513.lua

lua
	local tc=e:GetLabelObject()
	local mg=tc:GetMaterial()
	local sumtype=tc:GetSummonType()
	if Duel.Destroy(tc,REASON_EFFECT)~=0
		and bit.band(sumtype,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and mg:GetCount()>0

Gizmek Yata, the Gleaming Vanguard (13224603) ​

Source: Scripts/c13224603.lua

lua
function c13224603.reccon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return c:IsPreviousLocation(LOCATION_MZONE) and c:GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF
end
function c13224603.rectg(e,tp,eg,ep,ev,re,r,rp,chk)

Argostars - Lightning Tydeu (65889305) ​

Source: Scripts/c65889305.lua

lua
function s.setcon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return not c:IsStatus(STATUS_BATTLE_DESTROYED) and c:GetSummonType()==SUMMON_TYPE_SPECIAL+SUMMON_VALUE_SELF
end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)