Fixed issue with nested pets which wasn't showing when pressing the arrow in the bar

This commit is contained in:
Tercio Jose
2023-05-01 21:30:16 -03:00
parent 4ccf34b390
commit ba267b3eca
9 changed files with 290 additions and 157 deletions
+25
View File
@@ -607,6 +607,31 @@ function SlashCmdList.DETAILS (msg, editbox)
--Details.VarDump (_detalhes.ResetButton)
elseif (command == "trinket") then
local tooltipData = GameTooltip:GetTooltipData()
if (tooltipData) then
local spellId = tooltipData.id
local spellName = GetSpellInfo(spellId)
if (spellName) then
local itemLink = GetInventoryItemLink("player", 13)
if (itemLink) then
local itemName = GetItemInfo(itemLink)
if (itemName) then
local itemID, enchantID, gemID1, gemID2, gemID3, gemID4, suffixID, uniqueID, linkLevel, specializationID, modifiersMask, itemContext = select(2, strsplit(":", itemLink))
itemID = tonumber(itemID)
if (itemID) then
local s = "["..spellId.."] = {name = formatTextForItem("..itemID..")}, --trinket: ".. itemName
dumpt({s})
end
end
end
end
end
elseif (command == "mini") then
local instance = _detalhes.tabela_instancias [1]
--Details.VarDump ()