diff --git a/HeroLib/Class/Spell/Azerite.lua b/HeroLib/Class/Spell/Azerite.lua index fbea0cce..9d601e45 100644 --- a/HeroLib/Class/Spell/Azerite.lua +++ b/HeroLib/Class/Spell/Azerite.lua @@ -102,12 +102,12 @@ function Spell:MinorEssences() table.insert(returnTable, essenceInfo) end end - return returnTable + return returnTable and returnTable or 0 end function Spell:EssenceEnabled(ID, major) if major then - if AzeriteEssences[0].ID == ID then return true end + if AzeriteEssences[0] and AzeriteEssences[0].ID == ID then return true end else for _, essenceInfo in pairs(AzeriteEssences) do for k, v in pairs(essenceInfo) do