Cooking Automation not working
Blackspectre1 opened this issue · 4 comments
Hi there,
I'm trying to use my Chef's Hat but the automation: "Equip while cooking window is open" isn't functioning. All my other automations work but this one doesn't. Kind of weird so I don't think it's my WTF folder or anything like that.
Regards,
Black
Figured this one out. Go into the script source and change the following:
if event == "TRADE_SKILL_SHOW" then
local skillLineID, _, _, _, _, skillLineID2 = C_TradeSkillUI.GetTradeSkillLine()
if skillLineID == 185 or skillLineID2 == 185 then
equip = true
end
elseif event == "TRADE_SKILL_CLOSE" then
if didEquip then
equip = false
end
elseif event == "TRADE_SKILL_UPDATE" then
local skillLineID, _, _, _, _, skillLineID2 = C_TradeSkillUI.GetTradeSkillLine()
if skillLineID == 185 or skillLineID2 == 185 then
equip = true
elseif didEquip then
equip = false
end
end
to:
if event == "TRADE_SKILL_SHOW" then
local skillLineID, _, _, _ = GetTradeSkillLine()
if skillLineID == "Cooking" then
equip = true
end
elseif event == "TRADE_SKILL_CLOSE" then
if didEquip then
equip = false
end
elseif event == "TRADE_SKILL_UPDATE" then
local skillLineID, _, _, _ = GetTradeSkillLine()
if skillLineID == "Cooking" then
equip = true
elseif didEquip then
equip = false
end
end
Hey @Kpral , submit a PR for this! (=