View Single Post
09-30-16, 06:35 PM   #6
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Yea, that's what I've typically been using it for.

For example, I have a table that I run through when switching specs to see if a setting is enabled for certain abilities and whether or not their respective talent is learned.

Lua Code:
  1. rowList = {
  2.     [1] = Auras.db.char.aura[1].Thunderstorm,
  3.     [2] = Auras.db.char.aura[1].EarthElemental,
  4.     [3] = Auras.db.char.aura[1].LightningSurgeTotemEle and select(4,GetTalentInfo(3,1,1)),
  5.     [4] = Auras.db.char.aura[1].EarthgrabTotemEle and select(4,GetTalentInfo(3,2,1)),
  6.     [5] = Auras.db.char.aura[1].WindRushTotemEle and select(4,GetTalentInfo(2,3,1)),
  7.     [6] = Auras.db.char.aura[1].GustWindEle and select(4,GetTalentInfo(2,1,1)),
  8. }

If like that is a lot cleaner than _,_,_,isLearned four times. Granted, this code only runs when I switched specs, so its usage is fairly minimal

Last edited by Sweetsour : 09-30-16 at 06:39 PM.
  Reply With Quote