From cb36d5a6528a13cbf57b4982d30f562e7a071316 Mon Sep 17 00:00:00 2001 From: Szyler <66376500+Szyler@users.noreply.github.com> Date: Sat, 18 Oct 2025 21:54:39 +0200 Subject: [PATCH] Exclude crafting spells using Fel Blood Updated cost calculation to exclude spells using Fel Blood in crafting. --- TradeSkillMaster_Crafting/Modules/Cost.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/TradeSkillMaster_Crafting/Modules/Cost.lua b/TradeSkillMaster_Crafting/Modules/Cost.lua index f9d2246..c066906 100644 --- a/TradeSkillMaster_Crafting/Modules/Cost.lua +++ b/TradeSkillMaster_Crafting/Modules/Cost.lua @@ -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 \ No newline at end of file +end