@@ -34,20 +34,6 @@ local DIFF_DEFAULT_RED = 2; -- you have a talent they don't
3434local DIFF_DEFAULT_GREEN = 3 ; -- they have a talent you don't
3535local DIFF_DEFAULT_ORANGE = 4 ; -- different talent choice/rank
3636
37- local GetSpellInfo ;
38- do -- todo: remove after 11.0 release
39- GetSpellInfo = _G .GetSpellInfo or function (spellID )
40- if not spellID then
41- return nil ;
42- end
43-
44- local spellInfo = C_Spell .GetSpellInfo (spellID );
45- if spellInfo then
46- return spellInfo .name , nil , spellInfo .iconID , spellInfo .castTime , spellInfo .minRange , spellInfo .maxRange , spellInfo .spellID , spellInfo .originalIconID ;
47- end
48- end
49- end
50-
5137function TalentTreeTweaks_EmbedMiniTreeIntoTooltip (tooltip , exportString , configID )
5238 if not exportString and configID then
5339 local ok , configInfo = pcall (C_Traits .GetConfigInfo , configID );
@@ -441,13 +427,13 @@ function Module:AddBuildToTooltip(tooltip, exportString)
441427 local entryInfo = LTT :GetEntryInfo (entryID );
442428 local definitionInfo = entryInfo .definitionID and C_Traits .GetDefinitionInfo (entryInfo .definitionID );
443429 local spellID = definitionInfo and definitionInfo .spellID ;
444- local spellIcon = spellID and select ( 8 , GetSpellInfo ( spellID ) );
430+ local spellIcon = spellID and C_Spell . GetSpellTexture ( spellID );
445431 local isAtlas = false ;
446432
447- if (
433+ if
448434 (nodeSelectionInfo .isNodeSelected and not nodeSelectionInfo .isChoiceNode and not nodeSelectionInfo .isPartiallyRanked )
449435 or LTT :IsNodeGrantedForSpec (specID , nodeID )
450- ) then
436+ then
451437 style = VISUAL_STYLE_FULL ;
452438 rank = nodeInfo .maxRanks ;
453439 elseif nodeSelectionInfo .isPartiallyRanked then
0 commit comments