API GetSpecializationInfo

Returns information about the specified specialization. id, name, description, icon, role, primaryStat             = GetSpecializationInfo(specIndex [, isInspect, isPet, inspectTarget, sex]) id, name, description, icon, role, classFile, className    = GetSpecializationInfoByID(specID) id, name, description, icon, role, isRecommended, isAllowed = GetSpecializationInfoForClassID(classID, specIndex) id, name, description, icon, role, isRecommended, isAllowed = GetSpecializationInfoForSpecID(specID [, sex])

GetSpecializationInfo

 * specIndex : number - Index of the specialization to query, ascending from 1 to.
 * isInspect : boolean ? - Whether to query specialization information for the inspected unit. Does not actually seem to work, see.
 * isPet : boolean ? - Whether to query specialization information for the player's pet.
 * inspectTarget : unk ? - Unknown, not used in FrameXML.
 * sex : number ? - Player's sex as returned by

GetSpecializationInfoByID

 * specID : number : SpecializationID

GetSpecializationInfoForClassID

 * classID : number : ClassId
 * specIndex : number ?

GetSpecializationInfoForSpecID

 * specID : number : SpecializationID
 * sex : number ?

Returns

 * id : number : SpecializationID
 * name : string - Specialization name, e.g. "Balance".
 * description : <font color="#ecbc2a">string - Description of the specialization, e.g. "Can take on the form of a powerful Moonkin, balancing the power of Arcane and Nature magic to destroy enemies at a distance."
 * icon : <font color="#ecbc2a">number : FileID
 * role : <font color="#ecbc2a">string - The intended role in a party:

<font color="#4ec9b0">GetSpecializationInfo

 * primaryStat : <font color="#ecbc2a">number - The primary stat as listed in SPEC_STAT_STRINGS :

<font color="#4ec9b0">GetSpecializationInfoByID

 * classFile : <font color="#ecbc2a">string - Locale-independent class name, e.g.
 * className : <font color="#ecbc2a">string - Localized class name, e.g.

<font color="#4ec9b0">GetSpecializationInfoForClassID/SpecID

 * isRecommended : <font color="#ecbc2a">boolean - If this specialization is recommended for beginners to the class.
 * isAllowed : <font color="#ecbc2a">boolean - If the player is allowed to use this specialization.

Details

 * Despite the argument names,  does not appear to return valid information for inspected units. FrameXML uses  to retrieve a specialization ID instead. Warning: As of 2012/07/12, this seems to be quite often buggy: The return of GetInspectSpecialization should be a number less than 500, but sometimes is far greater and not interpretable. FrameXML is therefore 'validating' the value by calling, and only if that returns a non-nil value, it decodes the number with.

Values

 * Linked from: SpecializationID