Skip to content

Commit

Permalink
Fix skill level data initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
b-morgan committed Sep 12, 2024
1 parent edcfc58 commit 60e6774
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Skillet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,24 @@ function Skillet:OnInitialize()
--
-- Initialize the Skill Levels data if any of the tables are missing
--
local initSkillLevels
if not self.db.global.MissingSkillLevels then
self.db.global.MissingSkillLevels = {}
initSkillLevels = true
end
if not self.db.global.SkillLineAbility_era then
self:InitializeSkillLevels()
self.db.global.SkillLineAbility_era = {}
initSkillLevels = true
end
if not self.db.global.SkillLineAbility_cata then
self.db.global.SkillLineAbility_cata = {}
initSkillLevels = true
end
if not self.db.global.SkillLineAbility_retail then
self.db.global.SkillLineAbility_retail = {}
initSkillLevels = true
end
if initSkillLevels then
self:InitializeSkillLevels()
end

Expand Down

0 comments on commit 60e6774

Please sign in to comment.