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
+3 -1
View File
@@ -446,7 +446,8 @@ function Details:StartMeUp()
Details:LoadFramesForBroadcastTools()
Details:BrokerTick()
--build trinket data
---return the table where the trinket data is stored
---@return table<spellid, trinketdata>
function Details:GetTrinketData()
return Details.trinket_data
end
@@ -456,6 +457,7 @@ function Details:StartMeUp()
for spellId, trinketTable in pairs(customSpellList) do
if (trinketTable.isPassive) then
if (not trinketData[spellId]) then
---@type trinketdata
local thisTrinketData = {
itemName = C_Item.GetItemNameByID(trinketTable.itemId),
spellName = GetSpellInfo(spellId) or "spell not found",