WoW:API GetActiveSpecGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with "{{wowapi}} Returns the index of the current active talent group for the player. local specGroup = GetActiveSpecGroup(); === Returns === :;specGroup : The index of the curr...")
 
m (Move page script moved page API GetActiveSpecGroup to API GetActiveSpecGroup without leaving a redirect)
 
(No difference)

Latest revision as of 04:45, 15 August 2023

WoW API < GetActiveSpecGroup

Returns the index of the current active talent group for the player.

local specGroup = GetActiveSpecGroup();

Returns[edit]

specGroup
The index of the current active talent group (1 for primary / 2 for secondary).

Example[edit]

/script print(GetActiveSpecGroup())

Result

For primary spec
1

For alternate spec
2

Patch changes[edit]

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

See also[edit]