Skip to content

Commit

Permalink
Cooking Automation Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gogo1951 authored Jan 25, 2023
1 parent e7461e0 commit cfdf782
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions OutfitterScripting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1514,23 +1514,23 @@ end
-- $SETTING Pierre = {type = "boolean", label = "Summon Pierre", default = false}
-- $SETTING RandomCookFirePet = {type = "boolean", label = "Randomly summon a permitted cooking fire pet", default = false}
-- $EVENTS TRADE_SKILL_SHOW TRADE_SKILL_CLOSE
if event == "TRADE_SKILL_SHOW" then
local skillLineID, _, _, _, _, skillLineID2 = C_TradeSkillUI.GetTradeSkillLine()
if skillLineID == 185 or skillLineID2 == 185 then
equip = true
end
local skillLineID, _, _, _ = GetTradeSkillLine()
if skillLineID == "Cooking" then
equip = true
end
elseif event == "TRADE_SKILL_CLOSE" then
if didEquip then
equip = false
end
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
local skillLineID, _, _, _ = GetTradeSkillLine()
if skillLineID == "Cooking" then
equip = true
elseif didEquip then
equip = false
end
end
if ( setting.Ragnaros or setting.Pierre ) and equip ~= nil then
if equip then
Expand Down

0 comments on commit cfdf782

Please sign in to comment.