API GetNumSpecializations

From Wowpedia
Jump to: navigation, search

Returns the number of available specializations.

numSpecializations = GetNumSpecializations(isInspect, isPet)

Arguments

isInspect 
Boolean - if true, return information for the inspected unit; false by default
isPet 
Boolean - if true, return information for the player's pet; false by default

If both arguments are false, the function returns information concerning the player.

Returns

numSpecialization 
Number - number of available specializations.

Patch history

Mists of Pandaria Patch 5.0.4 (2012-08-28): Replaced GetNumTalentTabs.