Skip to content

Card.IsAttribute ​

Signature ​

lua
Card.IsAttribute(Card c, int attribute) -> bool

Description ​

Checks whether c currently has at least one Attribute flag from attribute.

Parameters ​

  • c Card
  • attribute int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 1461 indexed script(s).
  • Search this function in the Script Explorer with Card.IsAttribute.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua3
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua2
Fiendsmith's Sequence49867899Scripts/c49867899.lua1
Future Fusion Nova92058902Scripts/c92058902.lua1
Odd-Eyes Arcray Dragon6218704Scripts/c6218704.lua1
Tellusion the Magna Warrior24431911Scripts/c24431911.lua1
Ashened to Endlessness34813443Scripts/c34813443.lua1
Starving Venemy Dragon93729065Scripts/c93729065.lua1
A Bao A Qu, the Lightless Shadow4731783Scripts/c4731783.lua1
Cerynemesia, Mystical Beast of the Forest43632709Scripts/c43632709.lua1
Earthbound Servant Geo Gremlin8690387Scripts/c8690387.lua1
Sonic Tracker17888577Scripts/c17888577.lua1
Stars Align Above the Shrine15306543Scripts/c15306543.lua1
Super Soldier Ritual14094090Scripts/c14094090.lua1
Fiendsmith Kyrie26434972Scripts/c26434972.lua1
Gravity Balance37930737Scripts/c37930737.lua1
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua1
Hojo the Vaylantz Warrior88919365Scripts/c88919365.lua1
Trirealm Rift Judgment65195679Scripts/c65195679.lua2
Angelica, Princess of Noble Arms36320744Scripts/c36320744.lua1
Super Duper Polymerization44886582Scripts/c44886582.lua1
Magikey Dragon - Andrabime71159974Scripts/c71159974.lua2
Starving Venom Fusion Dragon, Four Heavenly Dragons27118421Scripts/c27118421.lua3
Hunting Horn55421040Scripts/c55421040.lua3
...and 1437 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
end
function s.filter(c)
	return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_FIRE)
end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Destiny HERO - Destro-Dogma (25158975) ​

Source: Scripts/c25158975.lua

lua
end
function s.spfilter(c)
	return (c:IsAttribute(ATTRIBUTE_DARK) or c:IsRace(RACE_WARRIOR)) and c:IsAbleToRemoveAsCost()
end
function s.spcon(e,c)

Fiendsmith's Sequence (49867899) ​

Source: Scripts/c49867899.lua

lua
end
function s.eqfilter(c)
	return c:IsFaceup() and c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_LIGHT) and not c:IsType(TYPE_LINK)
end
function s.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)