Skip to content

Card.IsFusionType ​

Signature ​

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

Description ​

Checks whether c's type while used as Fusion Material contains type. For an original Monster Card in the Spell & Trap Zone, the core uses the card-data type while material checks are active; otherwise it uses c's current type.

Parameters ​

  • c Card
  • type int

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 87 indexed script(s).
  • Search this function in the Script Explorer with Card.IsFusionType.
CardIDScriptDetected Calls
Goyo Emperor59255742Scripts/c59255742.lua1
D/D/D/D Dimensional King Arc Crisis71398055Scripts/c71398055.lua4
Odd-Eyes Arcray Dragon6218704Scripts/c6218704.lua4
Starving Venemy Dragon93729065Scripts/c93729065.lua1
Vaylantz Genesis Grand Duke76075139Scripts/c76075139.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Magikey Dragon - Andrabime71159974Scripts/c71159974.lua2
Windwitch - Crystal Bell25793414Scripts/c25793414.lua1
Zoroa, the Magistus Verethragna37260677Scripts/c37260677.lua1
Destiny HERO - Dusktopia93657021Scripts/c93657021.lua1
Miracle Synchro Fusion36484016Scripts/c36484016.lua1
Cyberdark End Dragon37542782Scripts/c37542782.lua1
Millennium-Eyes Restrict41578483Scripts/c41578483.lua1
Thunder Dragon Titan41685633Scripts/c41685633.lua1
Supreme King Z-ARC13331639Scripts/c13331639.lua4
Pendulum Dimension84274024Scripts/c84274024.lua1
Red-Eyes Dark Dragoon37818794Scripts/c37818794.lua2
Borreload Fatalflare Dragon84464389Scripts/c84464389.lua1
Oracle of Zefra32354768Scripts/c32354768.lua1
Mirrorjade the Iceblade Dragon44146295Scripts/c44146295.lua3
Cyberse Clock Dragon42717221Scripts/c42717221.lua1
Dinomorphia Rexterm92798873Scripts/c92798873.lua1
Sprind the Irondash Dragon1906812Scripts/c1906812.lua1
Invoked Magistus Omega38423248Scripts/c38423248.lua1
...and 63 more

Script Examples ​

Goyo Emperor (59255742) ​

Source: Scripts/c59255742.lua

lua
c59255742.material_type=TYPE_SYNCHRO
function c59255742.ffilter(c)
	return c:IsFusionAttribute(ATTRIBUTE_EARTH) and c:IsRace(RACE_WARRIOR) and c:IsFusionType(TYPE_SYNCHRO)
end
function c59255742.spcon(e,tp,eg,ep,ev,re,r,rp)

D/D/D/D Dimensional King Arc Crisis (71398055) ​

Source: Scripts/c71398055.lua

lua
end
function s.fusfilter1(c)
	return c:IsRace(RACE_FIEND) and c:IsFusionType(TYPE_FUSION)
end
function s.fusfilter2(c)

Odd-Eyes Arcray Dragon (6218704) ​

Source: Scripts/c6218704.lua

lua
c6218704.material_type=TYPE_SYNCHRO
function c6218704.fusfilter1(c)
	return c:IsRace(RACE_DRAGON) and c:IsFusionType(TYPE_FUSION)
end
function c6218704.fusfilter2(c)