API GetSpecializationInfoForClassID

From Wowpedia
Jump to: navigation, search

Returns information about the specified specialization.

specID, name, description, iconID, role, isRecommended, isAllowed = GetSpecializationInfoForClassID(classID, specNum)

Arguments

classID 
Number - The ClassId of the class to which this specialization belongs, going from 1 to GetNumClasses().
specNum 
Number - The number of the specialization to query, going from 1 to GetNumSpecializationsForClassID(classID).

Returns

specID 
Number - specialization ID.
name 
String - specialization name, e.g. "Balance".
description 
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."
iconID 
Number - Texture ID for this specializations' icon.
role 
String - This specializations' intended role in a party, one of "DAMAGER", "TANK", "HEALER".
isRecommended 
Boolean - If this specialization is recommended for beginners to the class.
isAllowed 
Boolean - If the player is allowed to use this specialization.

Patch changes

See also