View Single Post
09-04-12, 01:19 AM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
From what I can tell, GetSpecializationInfo(ID) accepts a value 1-3 to represent each specialization. For Druids, this is 1-4 to cover the extra Guardian spec. While GetActiveSpecGroup() returns if you're currently using your Primary or Secondary spec, this is irrelevant. You need to use GetSpecialization() to return the proper index that is the current active spec. This only works on the player, to get the spec of an inspection target, you need to get the ID from GetInspectSpecialization(Unit) and pass it to GetSpecializationInfoByID(ID).
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 09-04-12 at 01:23 AM.