v0.13.8

GetSpecializationInfoForClassID

functionguessedavailable in: camelot

Returns info for a specialization.

signaturewowlua
function GetSpecializationInfoForClassID(    classID: number,    index: number,    gender: UnitSex?): (number, string, string, number, string, boolean, boolean, number?, number?)

Parameters

nametypedescription
classIDnumberClassId
indexnumber
genderUnitSex?UnitSex

Returns

#nametypedescription
1idnumberSpecializationID
2namestringSpecialization name, e.g. "Balance".
3descriptionstringDescription 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."
4iconnumber
5rolestringThe intended role in a party: "DAMAGER", "TANK", "HEALER"
6recommendedbooleanIf this specialization is recommended for beginners to the class.
7allowedForBoostbooleanIf the player is allowed to use this specialization.
8masterySpell1number?
9masterySpell2number?

In wowlua's emulated client

guessedThe answer is worked out from Blizzard's documentation, its UI code and the function's name, and not checked against the client. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (SpecializationShared system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.