removing debug lines

This commit is contained in:
Tercio Jose
2022-12-31 18:25:45 -03:00
parent 7c83f58794
commit e98638cd83
-6
View File
@@ -147,9 +147,6 @@ end
local tooltipData = pet_tooltip_frame:GetTooltipData() --is pet tooltip reliable with the new tooltips changes?
if (tooltipData) then
print("new pet debug", petGUID, petName)
dumpt(tooltipData)
local tooltipLines = tooltipData.lines
for lineIndex = 1, #tooltipLines do
local thisLine = tooltipLines[lineIndex]
@@ -159,13 +156,10 @@ end
--parse the different types of information
if (lineType == 2) then --unit name
if (thisLine.leftText ~= petName) then
print("return tooltip isn't from the pet")
--tooltip isn't showing our pet
return
end
print("pet scanned:", thisLine.leftText:GetText())
elseif (lineType == 16) then --controller guid
--assuming the unit name always comes before the controller guid
local GUID = thisLine.guid