auctionable check improvements
This commit is contained in:
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user