Skip to content

Commit 3b98b5a

Browse files
NoM0ReInfusOnWoW
authored andcommitted
Fix: Regression in talent load
This regression was introduced in 9f40140.
1 parent d398467 commit 3b98b5a

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

WeakAuras/Prototypes.lua

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -703,13 +703,7 @@ if WeakAuras.IsClassicOrTBCOrWrathOrCata() then
703703
local num_talent = (index - 1) % MAX_NUM_TALENTS + 1
704704
local name, _, _, _, rank = Private.ExecEnv.GetTalentInfo(tab, num_talent)
705705
if name == nil then
706-
if not Private.ExecEnv.GetTalentInfo(1, 1) then
707-
-- No talents at all, likely to early to grab
708-
return nil
709-
end
710-
-- Talent doesn't exist; ignore it
711-
-- Should be cleared if missing, but struc doesn't exist yet
712-
return extraOption ~= 5
706+
return nil
713707
end
714708
local result = rank and rank > 0
715709
if extraOption == 4 then
@@ -728,13 +722,7 @@ if WeakAuras.IsMists() then
728722
column = (index - 1) % 3 + 1
729723
})
730724
if talentInfo == nil then
731-
if not Private.ExecEnv.GetTalentInfo(1, 1) then
732-
-- No talents at all, likely to early to grab
733-
return nil
734-
end
735-
-- Talent doesn't exist; ignore it
736-
-- Should be cleared if missing, but struc doesn't exist yet
737-
return extraOption ~= 5
725+
return nil
738726
end
739727
local result = talentInfo.selected
740728
if extraOption == 4 then

0 commit comments

Comments
 (0)