140140
141141function MoreTooltipInfo .FormatSpace (number )
142142 local formatted = number
143+ local k
143144
144145 while true do
145146 formatted , k = string.gsub (formatted , " ^(-?%d+)(%d%d%d)" , ' %1 %2' )
@@ -340,7 +341,7 @@ function MoreTooltipInfo.GetRPPM(spellID)
340341 local modSpec = nil
341342 if rppmtable [4 ] then
342343 if rppmtable [4 ][specID ] then
343- modSpec = rppmtable [4 ][bspecID ]
344+ modSpec = rppmtable [4 ][specID ]
344345 end
345346 end
346347
@@ -424,10 +425,11 @@ function MoreTooltipInfo.ItemDPSTooltip(destination, itemLink, itemID, personnal
424425 local InfoType
425426 local specID = MoreTooltipInfo .GetSpecID ()
426427 local classID = MoreTooltipInfo .GetClassID ()
428+ local dps
427429 if personnalData == " base" then
428430 if itemEquipLoc == " INVTYPE_TRINKET" then -- trinkets
429431 InfoType = " trinket"
430- local dps = MoreTooltipInfo .GetDPS (itemLink , itemID , destination )
432+ dps = MoreTooltipInfo .GetDPS (itemLink , itemID , destination )
431433 if dps then
432434 MoreTooltipInfo .TooltipLine (destination , dps , " Base simDPS" )
433435 end
@@ -472,7 +474,7 @@ function MoreTooltipInfo.SpellDPSTooltip(destination, spellID, InfoType, conduit
472474 if spellID then
473475 local specID = MoreTooltipInfo .GetSpecID ()
474476 local classID = MoreTooltipInfo .GetClassID ()
475-
477+ local dps
476478 -- talent
477479 if InfoType == " talent" then
478480 if profiles [InfoType ][classID ] == nil then return end
@@ -1475,6 +1477,7 @@ function DrawTalentDPSOnUI()
14751477 -- print("enter")
14761478
14771479 if UIParameters .talentOnUILoaded then
1480+ local curentTalent
14781481 -- print("show")
14791482 for i = 1 , UIParameters .MAX_TALENT_ROW do
14801483 for j = 1 , UIParameters .MAX_TALENT_PER_ROW do
@@ -1495,12 +1498,11 @@ function DrawTalentDPSOnUI()
14951498 if profiles [" talent" ][classID ][specID ] == nil then return end
14961499 for i , v in pairs (profiles [" talent" ][classID ][specID ]) do
14971500 if v [" enable" ] and v [" useOnUI" ] then
1498- -- print("profile")
14991501 data = v [" data" ]
15001502 end
15011503 end
15021504
1503- local p ,curentTalent ,currentFrame ,spellID
1505+ local p , curentTalent , currentFrame , spellID , dps
15041506 for i = 1 , UIParameters .MAX_TALENT_ROW do
15051507 for j = 1 , UIParameters .MAX_TALENT_PER_ROW do
15061508 curentTalent = " " .. i .. j
@@ -1526,6 +1528,7 @@ function DrawTalentDPSOnUI()
15261528 end
15271529end
15281530function HideTalentOverlay ()
1531+ local curentTalent
15291532 -- print("leave")
15301533 for i = 1 , UIParameters .MAX_TALENT_ROW do
15311534 for j = 1 , UIParameters .MAX_TALENT_PER_ROW do
0 commit comments