Method SpellInfo:HasAttribute [-] [+]
Checks if the SpellInfo has a specific attribute.
Attributes are characteristics or properties that spells can possess. Attributes are divided into different categories (from 0 to 8 in this context).
Here is how each attribute is inspected:
0 : SpellAttr0 1 : SpellAttr1 2 : SpellAttr2 3 : SpellAttr3 4 : SpellAttr4 5 : SpellAttr5 6 : SpellAttr6 7 : SpellAttr7 -1 : SpellCustomAttributes -2 : SpellCustomAttributesEx -3 : SpellCustomAttributesEx2
@return boolean : Returns true if SpellInfo has the attribute, else false.
Synopsis
SpellInfo:HasAttribute( attributeType, attribute )
Arguments
number attributeType
The type of the attribute..
Valid numbers: integers from -127 to 127.
number attribute
The specific attribute to check..
Valid numbers: integers from 0 to 4,294,967,295.
Returns
Nothing.