GetActiveSpecGroup() giving wrong value return.
So is it just me or is GetActiveSpecGroup() giving a reversed return?
A couple of dumps like this seems to give opposing values: ...While in your primary talents: Lua Code:
Returns: Code:
Dump: value=GetSpecializationInfo(1) Lua Code:
Returns: Code:
Dump: value=GetSpecializationInfo(GetActiveSpecGroup()) |
To clarify for others who may view this post, GetSpecializationInfo() is to view info on one of the three selectable specializations (talent sets) for your class. Such as Arcane, Fire or Frost for mages. GetActiveSpecGroup() will return with either 1 or 2, depending on if you are in your primary or secondary spec.
:) |
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).
|
To complete the list a bit. If you want to track stance informations you can use:
GetShapeshiftForm() return: index http://wowprogramming.com/docs/api/GetShapeshiftForm GetShapeshiftFormInfo(index) return: texture, name, isActive, isCastable = GetShapeshiftFormInfo(index) http://wowprogramming.com/docs/api/G...eshiftFormInfo |
All times are GMT -6. The time now is 04:01 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI