Skip to content

Commit

Permalink
fix tooltip reading code
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelonR committed Sep 13, 2024
1 parent 657fe9e commit 225bfd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions BuyEmAll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 225bfd7

Please sign in to comment.