Skip to content

Card.IsNonAttribute ​

Signature ​

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

Description ​

Checks whether c has any Attribute other than attribute. For example, if a monster is both DARK and WIND, IsAttribute(DARK) is true, but IsNonAttribute(DARK) is also true.

Parameters ​

  • c Card
  • attribute int

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 27 indexed script(s).
  • Search this function in the Script Explorer with Card.IsNonAttribute.
CardIDScriptDetected Calls
Mixeroid71340250Scripts/c71340250.lua1
ZS - Ouroboros Sage32281491Scripts/c32281491.lua1
Mariamne, the True Dracophoenix94160895Scripts/c94160895.lua1
Dragonroid9069157Scripts/c9069157.lua1
True King Lithosagym, the Disaster30539496Scripts/c30539496.lua1
Sea Stealth II58203736Scripts/c58203736.lua1
True King Agnimazud, the Vanisher96746083Scripts/c96746083.lua1
Ocean Dragon Lord - Kairyu-Shin23931679Scripts/c23931679.lua2
True King Bahrastos, the Fathomer82321037Scripts/c82321037.lua1
Super Quantum White Layer73422829Scripts/c73422829.lua1
Salamangreat Miragestallio87327776Scripts/c87327776.lua1
Thunderspeed Summon55557574Scripts/c55557574.lua1
Sirenorca50074392Scripts/c50074392.lua1
Yosenju Misak39853199Scripts/c39853199.lua1
Snowdust Giant73659078Scripts/c73659078.lua1
Photon Delta Wing47051709Scripts/c47051709.lua1
Fires of Doomsday46173679Scripts/c46173679.lua1
Windwitch - Snow Bell70117860Scripts/c70117860.lua1
Fairy King Albverdich28290705Scripts/c28290705.lua1
Amphibious Bugroth MK-114754691Scripts/c4754691.lua1
Eisbahn54059040Scripts/c54059040.lua1
Evilswarm Golem31456110Scripts/c31456110.lua1
Ally of Justice Catastor26593852Scripts/c26593852.lua1
Ally of Justice Thousand Arms85876417Scripts/c85876417.lua1
...and 3 more

Script Examples ​

Mixeroid (71340250) ​

Source: Scripts/c71340250.lua

lua
end
function c71340250.filter(c,e,tp)
	return c:IsSetCard(0x16) and c:IsNonAttribute(ATTRIBUTE_WIND) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c71340250.target(e,tp,eg,ep,ev,re,r,rp,chk)

ZS - Ouroboros Sage (32281491) ​

Source: Scripts/c32281491.lua

lua
end
function c32281491.spfilter(c,e,tp)
	return c:IsNonAttribute(ATTRIBUTE_LIGHT) and c:IsSetCard(0x48) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c32281491.eqfilter(c)

Mariamne, the True Dracophoenix (94160895) ​

Source: Scripts/c94160895.lua

lua
end
function c94160895.thfilter(c)
	return c:IsNonAttribute(ATTRIBUTE_WIND) and c:IsRace(RACE_WYRM) and c:IsAbleToHand()
end
function c94160895.thtg(e,tp,eg,ep,ev,re,r,rp,chk)