# Method SpellInfo:GetAttributes [-] [+]

Retrieves the attributes of the SpellInfo based on the attribute type.

Attributes are properties or traits of a spell. There are different categories (0 to 8 in this case) of attributes.

How each type of attribute is extracted:

    0 : Attributes
    1 : AttributesEx
    2 : AttributesEx2
    3 : AttributesEx3
    4 : AttributesEx4
    5 : AttributesEx5
    6 : AttributesEx6
    7 : AttributesEx7
    -1 : AttributesCu
    -2 : AttributesCuEx
    -3 : AttributesCuEx2
    -4 : AttributesCuEx3
    -5 : AttributesCuEx4
    -6 : AttributesCuEx5

## Synopsis

`attributes = SpellInfo:GetAttributes( attributeType )`

## Arguments

`number attributeType`

  The type of the attribute..

  Valid numbers: integers from -127 to 127.

## Returns

`number attributes`

  Returns the attributes of SpellInfo based on the attribute type..

  Valid numbers: integers from 0 to 4,294,967,295.

# Keyboard shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

# Search tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct` (or `str`), `enum`, `trait`, `typedef` (or `tdef`).

Generated on
© 2010 - 2024 Eluna Lua Engine