Skip to content

Card.IsFusionCode ​

Signature ​

lua
Card.IsFusionCode(Card c, int code1, [int code2], [... int]) -> bool

Description ​

Checks whether c can be treated as any supplied code while used as Fusion Material. The core includes c's current code, second code, and EFFECT_ADD_FUSION_CODE values. If no Fusion-only code additions apply, or material-code checks are disabled, it falls back to Card.IsCode.

Parameters ​

  • c Card
  • code1 int
  • code2 int optional
  • ... int optional

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 49 indexed script(s).
  • Search this function in the Script Explorer with Card.IsFusionCode.
CardIDScriptDetected Calls
Lubellion the Searing Dragon70534340Scripts/c70534340.lua1
Future Fusion Nova92058902Scripts/c92058902.lua1
Albion the Branded Dragon87746184Scripts/c87746184.lua1
Ashened to Endlessness34813443Scripts/c34813443.lua1
Red-Eyes Slash Dragon21140872Scripts/c21140872.lua1
Secrets of Dark Magic59514116Scripts/c59514116.lua1
Alba System Dogmatikalamity93053159Scripts/c93053159.lua1
Dragon Master Magia12381100Scripts/c12381100.lua2
Windwitch - Crystal Bell25793414Scripts/c25793414.lua1
Ultimate Fusion71143015Scripts/c71143015.lua3
Gladiator Beast Gaiodiaz90957527Scripts/c90957527.lua1
Red-Eyes Black Dragon Exceed17242022Scripts/c17242022.lua1
Thunder Dragon Titan41685633Scripts/c41685633.lua1
Branded Fusion44362883Scripts/c44362883.lua1
Gladiator Beast Gyzarus48156348Scripts/c48156348.lua1
Red-Eyes Dark Dragoon37818794Scripts/c37818794.lua1
Destiny HERO - Dreadnought Master54641720Scripts/c54641720.lua1
Blue-Eyes Toon Ultimate Dragon71808988Scripts/c71808988.lua2
Guardian Chimera11321089Scripts/c11321089.lua1
Mirrorjade the Iceblade Dragon44146295Scripts/c44146295.lua2
Arcana Force EX - The Chaos Ruler12686296Scripts/c12686296.lua1
Dinomorphia Kentregina48832775Scripts/c48832775.lua1
Blue-Eyes Tyrant Dragon11443677Scripts/c11443677.lua2
Destruction Swordsman Fusion41940225Scripts/c41940225.lua1
...and 25 more

Script Examples ​

Lubellion the Searing Dragon (70534340) ​

Source: Scripts/c70534340.lua

lua
end
function c70534340.branded_fusion_check(tp,sg,fc)
	return aux.gffcheck(sg,Card.IsFusionCode,68468459,Card.IsFusionAttribute,ATTRIBUTE_DARK)
end
function c70534340.spcon(e,tp,eg,ep,ev,re,r,rp)

Future Fusion Nova (92058902) ​

Source: Scripts/c92058902.lua

lua
end
function s.fcheck(tp,sg,fc)
	return sg:IsExists(Card.IsFusionCode,1,nil,70095154)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)

Albion the Branded Dragon (87746184) ​

Source: Scripts/c87746184.lua

lua
end
function c87746184.branded_fusion_check(tp,sg,fc)
	return aux.gffcheck(sg,Card.IsFusionCode,68468459,Card.IsFusionAttribute,ATTRIBUTE_LIGHT)
end
function c87746184.condition(e,tp,eg,ep,ev,re,r,rp)