Couple of fixes and a new feature for bank/GB (#25)

* Exclude crafting spells using Fel Blood

Updated cost calculation to exclude spells using Fel Blood in crafting.

* Epoch lua error fix

* Slow mail loot when low FPS to avoid double looting

* Allowing withdrawing items from bank/GB using "AH shortfall" to withdraw based on post cap and now ALSO minPrice of those items has to be above current DBMinBuyout.

* Fixing an infinite loop bug with invalid custom price of Default Craft Value Method

---------

Co-authored-by: Szyler <Szyler@Szyler.com>
This commit is contained in:
Szyler
2025-10-29 00:40:48 +01:00
committed by GitHub
parent ea602dbbce
commit c1d9d3f7c6
7 changed files with 50 additions and 11 deletions
+4 -3
View File
@@ -110,11 +110,12 @@ function Cost:GetLowestCraftPrices(itemString, intermediate)
if not spellIDs then return end
local lowestCost, cheapestSpellID
local soh = "item:76061:0:0:0:0:0:0" -- Spirit of Harmony
local fb = "item:800405:0:0:0:0:0:0" -- Fel Blood
for _, spellID in ipairs(spellIDs) do
if TSM.db.realm.crafts[spellID] then
if intermediate and (TSM.db.realm.crafts[spellID].mats[soh] or TSM.db.realm.crafts[spellID].hasCD) then
if intermediate and (TSM.db.realm.crafts[spellID].mats[soh] or TSM.db.realm.crafts[spellID].mats[fb] or TSM.db.realm.crafts[spellID].hasCD) then
break
end --exclude spells using SOH or have cooldown from intermediate crafts
end --exclude spells using SOH and FB or have cooldown from intermediate crafts
local cost = Cost:GetCraftCost(spellID)
if cost and (not lowestCost or cost < lowestCost) then
-- exclude spells with cooldown if option to ignore is enabled or more than one way to craft and not soulbound e.g. BoE
@@ -144,4 +145,4 @@ function Cost:GetLowestCraftPrices(itemString, intermediate)
end
return cheapestSpellID, lowestCost, buyout, profit
end
end