→ WoW API
Selects a specialization.
SetSpecialization(specIndex [, isPet] )
- Number - Index of the specialization to select, ascending from 1.
- Boolean - if true, set the select a specialization for the player's pet, otherwise, select a specialization for the player.
- Fails silently if you/your pet already have selected a specialization.
Patch 5.0.4 (2012-08-28): Added.