Skip to content

Commit

Permalink
Don't load the ForceLoadTradeSkillData on Cata Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
ahakola committed Aug 29, 2024
1 parent 9f6874f commit 83254a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions DMFQuest.toc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ AceConsole-3.0/AceConsole-3.0.xml
AceConfig-3.0/AceConfig-3.0.xml
#@end-no-lib-strip@

#@retail@
ForceLoadTradeSkillData.lua
#@end-retail@
Localization.lua
DMFQuest.lua
7 changes: 1 addition & 6 deletions ForceLoadTradeSkillData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ function hack:OnKeyDown()
-- listen for tradeskill UI opening then query it
UIParent:UnregisterEvent('TRADE_SKILL_SHOW')
self:RegisterEvent('TRADE_SKILL_SHOW')
if C_TradeSkillUI.OpenTradeSkill then
C_TradeSkillUI.OpenTradeSkill(self.professionID)
end
C_TradeSkillUI.OpenTradeSkill(self.professionID)
end

function hack:GetAnyProfessionID()
Expand All @@ -113,9 +111,6 @@ function hack:GetAnyProfessionID()
end

function hack:HasProfessionData(professionID)
if not C_TradeSkillUI.GetProfessionInfoBySkillLineID then
return false
end
local skillInfo = C_TradeSkillUI.GetProfessionInfoBySkillLineID(professionID)
return skillInfo and skillInfo.maxSkillLevel and skillInfo.maxSkillLevel > 0
end
Expand Down

0 comments on commit 83254a1

Please sign in to comment.