fix error when using aux

This commit is contained in:
Spit
2025-09-02 10:27:26 +03:00
parent be2f6837c8
commit b2d6cf0aa7
+2 -6
View File
@@ -332,16 +332,12 @@ ItemRefTooltip:SetScript("OnHide", function()
end)
AtlasLootTip:SetScript("OnShow", function()
if aux_frame and aux_frame:IsVisible() then
if GetMouseFocus():GetParent() then
if GetMouseFocus():GetParent().row then
if GetMouseFocus():GetParent().row.record.item_id then
if aux_frame and aux_frame:IsShown() then
if GetMouseFocus() and GetMouseFocus():GetParent() and GetMouseFocus():GetParent().row and GetMouseFocus():GetParent().row.record then
GameTooltip.itemID = GetMouseFocus():GetParent().row.record.item_id
ExtendTooltip(GameTooltip)
end
end
end
end
end)
-- adapted from http://shagu.org/ShaguTweaks/