Skip to content

Card.IsSynchroType ​

Signature ​

lua
Card.IsSynchroType(Card c, int type) -> bool

Description ​

Checks whether c's type while used as Synchro Material contains type.

Parameters ​

  • c Card
  • type int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 37 indexed script(s).
  • Search this function in the Script Explorer with Card.IsSynchroType.
CardIDScriptDetected Calls
Shooting Majestic Star Dragon40939228Scripts/c40939228.lua1
Red Hypernova Dragon30698243Scripts/c30698243.lua5
Kewl Tune B2B65961304Scripts/c65961304.lua1
Pendulum Dimension84274024Scripts/c84274024.lua1
Stardust Warrior74892653Scripts/c74892653.lua2
Ruddy Rose Dragon40139997Scripts/c40139997.lua1
Oracle of Zefra32354768Scripts/c32354768.lua1
Shooting Star Dragon T.G. EX63180841Scripts/c63180841.lua2
Dragunity Knight - Areus34528176Scripts/c34528176.lua1
Red Supernova Dragon99585850Scripts/c99585850.lua1
Crystal Clear Wing Synchro Dragon59765225Scripts/c59765225.lua1
Stardust Sifr Divine Dragon26268488Scripts/c26268488.lua2
Kewl Tune Rotary17209452Scripts/c17209452.lua1
Battlewasp - Hama the Conquering Bow80949182Scripts/c80949182.lua1
Shooting Star Dragon24696097Scripts/c24696097.lua1
Cosmic Quasar Dragon37442336Scripts/c37442336.lua2
Satellite Warrior84664085Scripts/c84664085.lua1
Metaphys Horus36898537Scripts/c36898537.lua1
Kewl Tune Cue16387555Scripts/c16387555.lua1
Hot Red Dragon Archfiend King Calamity62242678Scripts/c62242678.lua1
Cosmic Blazar Dragon21123811Scripts/c21123811.lua2
Stardust Chronicle Spark Dragon89474727Scripts/c89474727.lua2
T.G. Blade Blaster51447164Scripts/c51447164.lua2
Ignister Prominence, the Blasting Dracoslayer18239909Scripts/c18239909.lua1
...and 13 more

Script Examples ​

Shooting Majestic Star Dragon (40939228) ​

Source: Scripts/c40939228.lua

lua
c40939228.material_type=TYPE_SYNCHRO
function c40939228.cfilter(c,syncard)
	return c:IsRace(RACE_DRAGON) and c:IsSynchroType(TYPE_SYNCHRO) and c:IsNotTuner(syncard)
end
function c40939228.syncheck(g,syncard)

Red Hypernova Dragon (30698243) ​

Source: Scripts/c30698243.lua

lua
	aux.AddCodeList(c,97489701)
	--material
	aux.AddSynchroMixProcedure(c,aux.NonTuner(Card.IsSynchroType,TYPE_SYNCHRO),nil,nil,s.mfilter,4,99,s.syncheck)
	c:EnableReviveLimit()
	--cannot special summon

Kewl Tune B2B (65961304) ​

Source: Scripts/c65961304.lua

lua
	--Synchro Summon
	c:EnableReviveLimit()
	aux.AddSynchroMixProcedure(c,aux.Tuner(nil),nil,nil,aux.FilterBoolFunction(Card.IsSynchroType,TYPE_SYNCHRO),1,99)
	local e0=Effect.CreateEffect(c)
	e0:SetType(EFFECT_TYPE_SINGLE)