API GetSpecializationInfo

__NOTOC__
Returns info for a 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])
==Arguments==
===GetSpecializationInfo===
:;specIndex: - Index of the specialization to query, ascending from 1 to ().
:;isInspect: - Whether to query specialization information for the inspected unit.
::: Does not actually seem to work, you need to use () instead.
:;isPet: - Whether to query specialization information for the player's pet.
:;inspectTarget: - The unit to request data for, when inspecting.
:;sex: - Player's sex as returned by ()
===GetSpecializationInfoByID===
:;specID: : SpecializationID
===GetSpecializationInfoForClassID===
:;classID: : ClassId
:;specIndex:
===GetSpecializationInfoForSpecID===
:;specID: : SpecializationID
:;sex:
==Returns==
:;id: : SpecializationID
:;name: - Specialization name, e.g. "Balance".
:;description: - 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: : FileID
:;role: - The intended role in a party: "DAMAGER", "TANK", "HEALER"
===GetSpecializationInfo===
:;primaryStat: - The primary stat as listed in SPEC_STAT_STRINGS: 1=Strength, 2=Agility, 4=Intellect
===GetSpecializationInfoByID===
:;classFile: - Locale-independent class name, e.g. "PRIEST"
:;className: - Localized class name, e.g. "Priest"
===GetSpecializationInfoForClassID/SpecID===
:;isRecommended: - If this specialization is recommended for beginners to the class.
:;isAllowed: - If the player is allowed to use this specialization.
==Details==
==Values==
:Linked from: SpecializationID
==Example==
GetSpecializationInfo(1)
> 256, "Discipline", "Uses magic to shield allies from taking damage as well as heal their wounds.\r\n\r\nPreferred Weapon: Staff, Wand, Dagger, Mace", 135940, "HEALER", 4
GetSpecializationInfoByID(256)
> 256, "Discipline", "Uses magic to shield allies from taking damage as well as heal their wounds.\r\n\r\nPreferred Weapon: Staff, Wand, Dagger, Mace", 135940, "HEALER", "PRIEST", "Priest"
GetSpecializationInfoForClassID(5, 1)
> 256, "Discipline", "Uses magic to shield allies from taking damage as well as heal their wounds.\r\n\r\nPreferred Weapon: Staff, Wand, Dagger, Mace", 135940, "HEALER", true, false
GetSpecializationInfoForSpecID(256)
> 256, "Discipline", "Uses magic to shield allies from taking damage as well as heal their wounds.\r\n\r\nPreferred Weapon: Staff, Wand, Dagger, Mace", 135940, "HEALER", true, false
==Patch changes==
==References==