GetSpecializationRole
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 5.0.4 |
Returns the role a specialization is intended to perform.
roleToken = GetSpecializationRole(specIndex [, isInspect, isPet])
Arguments
- specIndex
- number - Specialization index, ascending from 1.
Returns
- roleToken
- string - One of "DAMAGER", "TANK", "HEALER"; 0 if the query is invalid.
Details
- While the inspection/pet arguments are suggested by the syntax error message, the function only returns 0 when those arguments are used. FrameXML uses GetInspectSpecialization("unit") in conjunction with GetSpecializationRoleByID(id) instead.
See also
Patch changes
Patch 5.0.4 (2012-08-28): Added.