wowpedia
Main Menu


Sets the role for a player talent group (primary or secondary).

SetTalentGroupRole(groupIndex, role)

Arguments

groupIndex
number - Ranging from 1 to 2 (primary/secondary talent group). To get the current one use GetActiveTalentGroup()
role
string - Can be DAMAGER, TANK, or HEALER. If an invalid role is given, it defaults to DAMAGER