FANDOM


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:Patch 5.0.4

See also Edit

Community content is available under CC-BY-SA unless otherwise noted.