File tree Expand file tree Collapse file tree 1 file changed +2
-22
lines changed
Expand file tree Collapse file tree 1 file changed +2
-22
lines changed Original file line number Diff line number Diff line change @@ -42,28 +42,8 @@ function IcyVeinsImport:ImportUrl(fullUrl)
4242 TalentViewer :SelectSpec (classID , specID ); -- also clears the viewer's state
4343 TalentViewer :StartRecordingLevelingBuild (); -- just to be sure ;)
4444
45- if true then
46- TalentViewer :ImportLevelingBuild (levelingOrder );
47- TalentViewer :ApplyLevelingBuild (TalentViewer :GetCurrentLevelingBuildID (), ns .MAX_LEVEL , true );
48- return
49- end
50-
51- local backup = TalentViewer .db .ignoreRestrictions ;
52- TalentViewer .db .ignoreRestrictions = true ;
53-
54- local talentFrame = TalentViewer :GetTalentFrame ();
55- for level = 10 , 20 or ns .MAX_LEVEL do
56- local entry = levelingOrder [level ];
57- if entry then
58- if entry .entryID then
59- talentFrame :SetSelection (entry .nodeID , entry .entryID );
60- else
61- talentFrame :PurchaseRank (entry .nodeID );
62- end
63- end
64- end
65-
66- TalentViewer .db .ignoreRestrictions = backup ;
45+ TalentViewer :ImportLevelingBuild (levelingOrder );
46+ TalentViewer :ApplyLevelingBuild (TalentViewer :GetCurrentLevelingBuildID (), ns .MAX_LEVEL , true );
6747end
6848
6949--- @param url string
You can’t perform that action at this time.
0 commit comments