Cloak tooltip
Dairyman opened this issue ยท 2 comments
You can
Remix-Gem-Helper/CloakTooltip.lua
Lines 22 to 31 in d7038cf
change with
local function updateItemTooltip(tooltip, tooltipData)
if tooltipData.id ~= const.CLOAK_BUFF.ITEM_ID or not tooltipData.guid then return end
local guid = tooltipData.guid
if not guid or not C_Item.IsItemGUIDInInventory(guid) then return end
tooltip.TextLeft1:SetText((tooltip.TextLeft1:GetText() or "") .. getCloakLevel())
local stats = getCloakStats()
if stats then
tooltip.TextLeft2:SetText((tooltip.TextLeft2:GetText() or "").. "\n" .. stats)
end
end
Simpler check if it is the cloak and check if it yours so it does not display your stats on other players cloaks. Plus a check for stats as this can be nil when you do not wear the cloak.