You've already forked GnomishVendorShrinker
first errors with Classic, CURRENCY_DISPLAY_UPDATE, SetMerchantFilter and C_Heirloom doesn't exists
This commit is contained in:
@ -70,7 +70,6 @@ function ns.NewMainFrame()
|
||||
|
||||
GVS:RegisterEvent("BAG_UPDATE")
|
||||
GVS:RegisterEvent("MERCHANT_UPDATE")
|
||||
GVS:RegisterEvent("CURRENCY_DISPLAY_UPDATE")
|
||||
end)
|
||||
GVS:SetScript("OnHide", GVS.UnregisterAllEvents)
|
||||
|
||||
|
@ -27,14 +27,7 @@ local function HasAllCommonBarterItems(index)
|
||||
end
|
||||
|
||||
|
||||
local function IsHeirloom(index)
|
||||
local id = GetMerchantItemID(index)
|
||||
return id and C_Heirloom.IsItemHeirloom(id)
|
||||
end
|
||||
|
||||
|
||||
local function RequiresConfirmation(index)
|
||||
if IsHeirloom(index) then return true end
|
||||
if not HasAllCommonBarterItems(index) then return true end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user