@@ -224,7 +224,7 @@ function br.loader:new(spec, specName)
224
224
225
225
-- Get All Talents
226
226
local function getAllTalents ()
227
- br .talentInfo = {}
227
+ -- br.talentInfo = {}
228
228
local talents = {}
229
229
local configId = br ._G .C_ClassTalents .GetActiveConfigID ()
230
230
if not configId then return talents end
@@ -266,17 +266,19 @@ function br.loader:new(spec, specName)
266
266
local function getFunctions ()
267
267
-- Build Talent Info
268
268
local allTalents = getTalentInfo ()
269
- br .allTalents = allTalents
269
+ -- br.allTalents = allTalents
270
270
if self .talent == nil then self .talent = {} end
271
271
-- Heroic Talent Patching
272
272
local spellListTalents = self .spells .talents -- Copy to holding table
273
273
if self .spells .talentsHeroic ~= nil then
274
274
-- Add heroic talents to holding table
275
275
for k , v in pairs (self .spells .talentsHeroic ) do spellListTalents [k ] = v end
276
276
-- Add in missing heroic talents to allTalents (allTalents only get talents available to spec, not all heroic talents are available)
277
- for _ , v in pairs (self .spells .talentsHeroic ) do
278
- if allTalents [v ] == nil then
279
- allTalents [v ] = { rank = 0 , active = false }
277
+ if allTalents ~= nil then
278
+ for _ , v in pairs (self .spells .talentsHeroic ) do
279
+ if allTalents [v ] == nil then
280
+ allTalents [v ] = { rank = 0 , active = false }
281
+ end
280
282
end
281
283
end
282
284
end
0 commit comments