API GetInspectSpecialization

From Wowpedia
Jump to: navigation, search

Returns a number representing the current active specialization of a given unit.

id = GetInspectSpecialization("unit")

Arguments

unit 
String - The unitid of the player to request the specialization of.

Returns

id 
Number - specialization ID.

Notes

This function may return 0 if the server hasn't sent the requested inspect information needed yet.

The specialization IDs are as follows:

Class Specialization 1 Specialization 2 Specialization 3 Specialization 4
ID Name ID Name ID Name ID Name
Death Knight 250 Blood 251 Frost 252 Unholy  
Demon Hunter 577 Havoc 581 Vengeance      
Druid 102 Balance 103 Feral 104 Guardian 105 Restoration
Hunter 253 Beast Mastery 254 Marksmanship 255 Survival  
Mage 62 Arcane 63 Fire 64 Frost  
Monk 268 Brewmaster 270 Mistweaver 269 Windwalker  
Paladin 65 Holy 66 Protection 70 Retribution  
Priest 256 Discipline 257 Holy 258 Shadow  
Rogue 259 Assassination 260 Outlaw 261 Subtlety  
Shaman 262 Elemental 263 Enhancement 264 Restoration  
Warlock 265 Affliction 266 Demonology 267 Destruction  
Warrior 71 Arms 72 Fury 73 Protection  

Patch changes