From 225bfd7c1bfa6ee7e4f1bba43f0a4a481a167349 Mon Sep 17 00:00:00 2001 From: kaelonR Date: Fri, 13 Sep 2024 19:29:53 +0200 Subject: [PATCH] fix tooltip reading code --- BuyEmAll.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/BuyEmAll.lua b/BuyEmAll.lua index 76fdaa5..be1fe01 100644 --- a/BuyEmAll.lua +++ b/BuyEmAll.lua @@ -69,10 +69,8 @@ function BuyEmAll:ItemIsUnique(itemIDOrLink) local tooltip = C_TooltipInfo.GetItemByID(itemIDOrLink); for _, line in ipairs(tooltip.lines) do - for _, arg in ipairs(line.args) do - if(arg.field == 'leftText' and arg.stringVal == 'Unique') then - return true; - end + if(line.leftText == 'Unique') then + return true; end end