WoWWiki

This wiki contains inaccurate and out-of-date information. Please head over to https://wowpedia.fandom.com for more accurate and up-to-date game information.

READ MORE

WoWWiki
Advertisement

WoW API < GetActiveSpecGroup

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

local specGroup = GetActiveSpecGroup();

Returns[]

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

Example[]

/script print(GetActiveSpecGroup())

Result

For primary spec
1

For alternate spec
2

Patch changes[]

Lua error in package.lua at line 80: module 'Module:Inlinegfx/img_link_data.json' not found. Patch 5.0.4 (28-August-2012): Replaced GetActiveTalentGroup.

See also[]

Advertisement