From 80e495f707cf020355357dc3f3669e3370471a4b Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 11 Sep 2022 00:12:30 -0500 Subject: [PATCH] Attempt to fix enchant level detection on Wrath This only works if the player hasn't collapsed the Professions section of their skill UI, and if LibBabble-Inventory's translation is correct for this in all cases, but it's the only method I've found so far that works for Wrath. The other option is to show everything as disenchantable, but I don't like that. --- Breakables.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Breakables.lua b/Breakables.lua index 95431dc..8602c7e 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -517,6 +517,14 @@ function Breakables:GetEnchantingLevel() self.EnchantingLevel = rank end end + elseif GetSkillLineInfo then + for i=1,100 do + local skillName, header, isExpanded, skillRank, numTempPoints, skillModifier, skillMaxRank, isAbandonable, stepCost, rankCost, minLevel, skillCostType = GetSkillLineInfo(i) + if skillName == babbleInv["Enchanting"] then + self.EnchantingLevel = skillRank + break + end + end end end