Skip to content

Card.IsFusionAttribute ​

Signature ​

lua
Card.IsFusionAttribute(Card c, int attribute, [int player]) -> bool

Description ​

Checks whether c's Attribute while used as Fusion Material contains attribute. player defaults to the current reason player. The core uses c:GetFusionAttribute(player), so Fusion Material Attribute-changing effects are included.

Parameters ​

  • c Card
  • attribute int
  • player int optional - default: current reason player

Returns ​

  • bool

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 84 indexed script(s).
  • Search this function in the Script Explorer with Card.IsFusionAttribute.
CardIDScriptDetected Calls
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Goyo Emperor59255742Scripts/c59255742.lua1
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua1
Invoked Sorath43989315Scripts/c43989315.lua1
Lubellion the Searing Dragon70534340Scripts/c70534340.lua2
Albion the Branded Dragon87746184Scripts/c87746184.lua2
Starving Venemy Dragon93729065Scripts/c93729065.lua1
El Shaddoll Meshachrer32467459Scripts/c32467459.lua3
Starving Venom Fusion Dragon, Four Heavenly Dragons27118421Scripts/c27118421.lua3
Chevreuil, Hunting Scout of the Deep Forest13023431Scripts/c13023431.lua2
Possessed Destiny - Wynn60516416Scripts/c60516416.lua1
Earthbound Servant Geo Gremlina33202303Scripts/c33202303.lua1
Starving Venom Fusion Dragon41209827Scripts/c41209827.lua1
Egyptian God Slime42166000Scripts/c42166000.lua1
Gilti-Gearfried the Magical Steel Knight49161188Scripts/c49161188.lua1
Fata Dragna41763141Scripts/c41763141.lua1
Invoked Baybarron70383419Scripts/c70383419.lua1
Borreload Fatalflare Dragon84464389Scripts/c84464389.lua2
Predaplant Chimerafflesia25586143Scripts/c25586143.lua1
Fiendsmith's Lacrima46640168Scripts/c46640168.lua1
Darklord Eveningstar10136446Scripts/c10136446.lua1
Dark Magician of Destruction59400890Scripts/c59400890.lua1
Elemental HERO Sunrise22908820Scripts/c22908820.lua1
...and 60 more

Script Examples ​

Lady's Dragonmaid (48658295) ​

Source: Scripts/c48658295.lua

lua
	if not sg then return true end
	return not sg:IsExists(Card.IsLevel,1,c,c:GetLevel())
		and sg:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())
end
function s.splimit(e,se,sp,st)

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)

El Shaddoll Apkallone (50907446) ​

Source: Scripts/c50907446.lua

lua
end
function c50907446.FShaddollFilter1(c,g)
	return c:IsFusionSetCard(0x9d) and g:IsExists(c50907446.FShaddollFilter2,1,c) and not g:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())
end
function c50907446.FShaddollFilter2(c)