Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
→ WoW API
Returns the role a specialization is intended to perform.
local roleToken = GetSpecializationRole(specIndex[, isInspect[, isPet]])
- Number - Specialization index, ascending from 1.
- String - One of "DAMAGER", "TANK", "HEALER"; 0 if the query is invalid.
- 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
Patch 5.0.4 (28-August-2012): Added.