Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting Legion training recipes causes Lua error in CraftSim.RecipeData:IsOldWorldRecipe() #814

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Classes/RecipeData.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,9 @@ function CraftSim.RecipeData:CrafterDataEquals(crafterData)
end

function CraftSim.RecipeData:IsOldWorldRecipe()
return self.professionData.expansionID < CraftSim.CONST.EXPANSION_IDS.DRAGONFLIGHT
local recipeExpansionID = self.professionData.expansionID
if recipeExpansionID == "BASE" then return true end
return recipeExpansionID < CraftSim.CONST.EXPANSION_IDS.DRAGONFLIGHT
end

---@param expansionID CraftSim.EXPANSION_IDS
Expand Down