WoW API: GetSpecializationRole
Jump to navigation
Jump to search
← WoW API < GetSpecializationRole
Returns the role a specialization is intended to perform.
local roleToken = GetSpecializationRole(specIndex[, isInspect[, isPet]])
Arguments[edit]
- specIndex
- Number - Specialization index, ascending from 1.
Returns[edit]
- roleToken
- String - One of "DAMAGER", "TANK", "HEALER"; 0 if the query is invalid.
Notes[edit]
- 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.
Patch history[edit]
Template:Mists-inline <span style="" title="Patch 5.0.4">Patch 5.0.4</span> (patch date::28-August-2012): Added.