View Single Post
08-09-18, 10:35 AM   #7
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Not to worry, the rest of my tables in my defaults are dictonaries. The reason I used an indexed table was that I needed the spells in a specific order, which you can't do with dictionaries. However, the solution I used was making a small addition to my "spells" table.

Original configuration
Lua Code:
  1. ["Adaptation"] = {
  2.     condition = function() return select(10,GetPvpTalentInfoByID(3597)) and IsPvPZone() end,
  3.     spellID = 214027,
  4.     isInUse = true,
  5. },
  6. ["AncestralGuidance"] = {
  7.     condition = function() return select(4,GetTalentInfo(5,2,1)) end,
  8.     spellID = 108281,
  9.     isInUse = true,
  10. },
  11. ["Ascendance"] = {
  12.     condition = function() return select(4,GetTalentInfo(7,3,1)) end,
  13.     spellID = 114050,
  14.     isInUse = true,
  15. },
  16. ...

New configuration
Lua Code:
  1. ["Adaptation"] = {
  2.     condition = function() return select(10,GetPvpTalentInfoByID(3597)) and IsPvPZone() end,
  3.     spellID = 214027,
  4.     group = 4,
  5.     order = 1,
  6.     isInUse = true,
  7. },
  8. ["AncestralGuidance"] = {
  9.     condition = function() return select(4,GetTalentInfo(5,2,1)) end,
  10.     spellID = 108281,
  11.     group = 2,
  12.     order = 3,
  13.     isInUse = true,
  14. },
  15. ["Ascendance"] = {
  16.     condition = function() return select(4,GetTalentInfo(7,3,1)) end,
  17.     spellID = 114050,
  18.     group = 2,
  19.     order = 2,
  20.     isInUse = true,
  21. },

Thanks for the help/insights, everyone

Last edited by Sweetsour : 08-09-18 at 10:43 AM.
  Reply With Quote