Skip to content

Card.GetFusionCode ​

Signature ​

lua
Card.GetFusionCode(Card c) -> int,...?

Description ​

Returns c's Fusion Material codes: current code, second code when present, then EFFECT_ADD_FUSION_CODE values. When the core is checking with not_material set, only the current and second codes are returned.

Parameters ​

  • c Card

Returns ​

  • int - Current code.
  • ...? - Additional Fusion Material code values, if any.

Source ​

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

Used By ​

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

  • Detected in 13 indexed script(s).
  • Search this function in the Script Explorer with Card.GetFusionCode.
CardIDScriptDetected Calls
Alba System Dogmatikalamity93053159Scripts/c93053159.lua1
Thunder Dragon Titan41685633Scripts/c41685633.lua1
Guardian Chimera11321089Scripts/c11321089.lua1
Arcana Force EX - The Chaos Ruler12686296Scripts/c12686296.lua1
Dinomorphia Kentregina48832775Scripts/c48832775.lua1
Lunalight Kaleido Chick35618217Scripts/c35618217.lua1
Trishula, the Dragon of Icy Imprisonment15661378Scripts/c15661378.lua1
Dante, Pilgrim of the Burning Abyss18386170Scripts/c18386170.lua1
Over Fusion52553471Scripts/c52553471.lua1
Dinomorphia Stealthbergia74936480Scripts/c74936480.lua1
Fusion Tag59432181Scripts/c59432181.lua1
Garura, Wings of Resonant Life11765832Scripts/c11765832.lua1
Pair Cycroid16114248Scripts/c16114248.lua1

Script Examples ​

Alba System Dogmatikalamity (93053159) ​

Source: Scripts/c93053159.lua

lua
	if aux.FCheckAdditional and not aux.FCheckAdditional(tp,sg,fc)
		or aux.FGoalCheckAdditional and not aux.FGoalCheckAdditional(tp,sg,fc) then return false end
	return g:GetClassCount(Card.GetFusionCode)==g:GetCount()
		and (chkf==PLAYER_NONE or Duel.GetLocationCountFromEx(tp,tp,sg,fc)>0)
end

Thunder Dragon Titan (41685633) ​

Source: Scripts/c41685633.lua

lua
	if not (c:IsLocation(LOCATION_MZONE) and c:IsFusionType(TYPE_FUSION)) then return false end
	if not c:IsFusionCode(41685633) then return true end
	for i,code in ipairs({c:GetFusionCode()}) do
		if code~=41685633 then return true end
	end

Guardian Chimera (11321089) ​

Source: Scripts/c11321089.lua

lua
	local chkloc=LOCATION_HAND
	if c:IsOnField() then chkloc=LOCATION_ONFIELD end
	return not sg:IsExists(Card.IsFusionCode,1,c,c:GetFusionCode())
		and (not c:IsLocation(LOCATION_HAND+LOCATION_ONFIELD) or #sg<2 or sg:IsExists(aux.NOT(Card.IsLocation),1,c,chkloc))
end