Alert Fixes (2.1.1)

This commit is contained in:
mikx
2020-12-06 05:03:00 -05:00
parent 6111ec4c2d
commit 8408ffd1ec
4 changed files with 14 additions and 7 deletions

View File

@@ -35,11 +35,16 @@ LOOT_OPENED_Frame:SetScript("OnEvent",
if (itemId ~= nil) then
value = MX.TSM:GetItemValue(itemId, "DBMinBuyout");
end
MX:SendAlert(iLink,lootQuantity,value,by)
by = by - 85
if (value ~= nil and value >= Farmer_Logic_MinAlert) then
if (quality ~= nil and quality >= 1) then
if (class == L["Alert_Class_Armor"] or class == L["Alert_Class_Weapon"] or class == L["Alert_Class_TradeGoods"] or class == L["Alert_Class_Consumable"] or class == L["Alert_Class_Misc"] or class == "Recipe") then
MX:SendAlert(iLink,lootQuantity,value,by)
by = by - 85
end
end
end
end
if (value ~= nil) then
if (value ~= nil and quality ~= nil and quality >= 1) then
Farmer_Money_LootSession = Farmer_Money_LootSession + value;
MX:MainUIUpdate()
value = nil