View Single Post
03/03/16, 04:08 PM   #8
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
We tried it with different skills and also with skills in the action bar, which had to be unlocked in order to be placed:
Lua Code:
  1. local abilityId = ActionButton3Button.actionId
  2. local hasProgression, progressionIndex = GetAbilityProgressionXPInfoFromAbilityId(abilityId)
  3. if(hasProgression) then
  4. local skillType, skillIndex, abilityIndex = GetSkillAbilityIndicesFromProgressionIndex(progressionIndex)
  5. local abilityId2 = GetSkillAbilityId(skillType, skillIndex, abilityIndex)
  6. df("%d == %d => %s", abilityId, abilityId2, tostring(abilityId == abilityId2))
  7. end