Skip to content

Commit 7e45703

Browse files
committed
Fix targeted crafting and self-enchant workflow
1 parent 6693b7b commit 7e45703

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

UI/MultiBotCharacterInfoFrame.lua

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ local RECIPE_CRAFT_BUTTON_WIDTH = 62
5555
local RECIPE_TEXT_WIDTH = 176
5656
local RECIPE_REFRESH_DELAY = 3.0
5757
local COOKING_SKILL_ID = 185
58-
local ENCHANTING_SKILL_ID = 333
5958

6059
local REPUTATION_BAR_COLORS = {
6160
[0] = { 0.80, 0.12, 0.12 }, -- Hated
@@ -574,10 +573,13 @@ local function beginRecipeTargetSelection(frame, botName, skillId, spellId)
574573
spellId = tonumber(spellId or 0) or 0,
575574
}
576575

577-
frame.status:SetText(L(
578-
"profession.recipes.target.select",
579-
"Select the exact item to modify in the bot's inventory or equipment."
580-
))
576+
local spellName = getSpellDisplay(spellId)
577+
frame.status:SetText(
578+
spellName .. " - " .. L(
579+
"profession.recipes.target.select",
580+
"Select the exact item to modify in the bot's inventory or equipment."
581+
)
582+
)
581583
frame:render()
582584

583585
if MultiBot.RequestBotInventory then
@@ -1089,14 +1091,6 @@ local function ensureCharacterFrame()
10891091
if not self.skill then return end
10901092
if self.skill.category ~= "profession" and self.skill.category ~= "secondary" then return end
10911093

1092-
if tonumber(self.skill.skillId or 0) == ENCHANTING_SKILL_ID
1093-
and MultiBot.IsBotEnchantingServiceAvailable
1094-
and MultiBot.IsBotEnchantingServiceAvailable(frame.botName)
1095-
and MultiBot.OpenBotEnchanting then
1096-
MultiBot.OpenBotEnchanting(frame.botName, nil)
1097-
return
1098-
end
1099-
11001094
if MultiBot.Comm and MultiBot.Comm.RequestProfessionRecipes then
11011095
ensureRecipeFrame()
11021096
setWindowTitle(MultiBot.professionRecipeFrame, getSkillDisplayName(self.skill) .. " - " .. (frame.botName or ""))
@@ -1609,7 +1603,7 @@ function MultiBot.OnBridgeProfessionRecipeTargetResult(botName, result, reason,
16091603
end
16101604

16111605
if sameBot and sameSkill then
1612-
local reasonText = getCraftReasonText(reason, skillId)
1606+
local reasonText = getRecipeTargetReasonText(reason, skillId)
16131607
if reasonText ~= "" then
16141608
frame.status:SetText(string.format(
16151609
L("profession.recipes.target.err", "Targeted craft failed: %s"),

UI/MultiBotInspectUI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ local function onInspectSlotClick(self, mouseButton)
176176
local itemLink = getSlotItemLink(self)
177177
local inspectSlotId = getInspectSlotId(self)
178178
local itemId = getItemIdFromLink(itemLink)
179-
if inspectSlotId and itemId and MultiBot.TryProfessionRecipeTargetEquipmentItem then
179+
if inspectSlotId and MultiBot.TryProfessionRecipeTargetEquipmentItem then
180180
local serverSlot = inspectSlotId - 1
181181
if MultiBot.TryProfessionRecipeTargetEquipmentItem(botName, serverSlot, itemId) then
182182
return

0 commit comments

Comments
 (0)