From 8f1100c92600e18b64d0882b018f89b1f718251d Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sun, 29 Jan 2017 17:37:45 +0100 Subject: [PATCH] auctionable check improvements --- util/info.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/info.lua b/util/info.lua index 3bf2cab..dd1e796 100644 --- a/util/info.lua +++ b/util/info.lua @@ -265,12 +265,12 @@ end function M.auctionable(tooltip, quality, strict) local status = tooltip[2] and tooltip[2].left_text local durability, max_durability = durability(tooltip) - return and (not quality or quality < 6) + return (not quality or quality < 6) and status ~= ITEM_BIND_ON_PICKUP and status ~= ITEM_BIND_QUEST and status ~= ITEM_SOULBOUND and (not tooltip_match(ITEM_CONJURED, tooltip) or tooltip_find(ITEM_MIN_LEVEL, tooltip) > 1) - and not (durability and durability < max_durability) + and not (strict and durability and durability < max_durability) end function M.tooltip(setter, arg1, arg2)