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
Synopsis
has_attribute = SpellInfo:HasAttribute( attributeType, attribute )
Arguments
int8 attributeType
The type of the attribute..
uint32 attribute
The specific attribute to check..
Returns
bool has_attribute
- See method description.