WoW:API GetNumSpecializations: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "{{wowapi}} Returns the number of available specializations. local numSpecializations = GetNumSpecializations(isInspect, isPet) == Arguments == ; isInspect : Boolean - if tru...")
 
m (Move page script moved page API GetNumSpecializations to API GetNumSpecializations without leaving a redirect)
 
(No difference)

Latest revision as of 04:46, 15 August 2023

WoW API < GetNumSpecializations

Returns the number of available specializations.

local numSpecializations = GetNumSpecializations(isInspect, isPet)

Arguments[edit]

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[edit]

numSpecialization
Number - number of available specializations.

Patch history[edit]

Template:Mists-inline <span style="" title="Patch 5.0.4">Patch 5.0.4</span> (patch date::28-August-2012): Replaced GetNumTalentTabs.

See also[edit]