diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index f5fe944b..2996c5f1 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -415,7 +415,9 @@ function HeroEntity:getRogueSkillList() if ids then for i = #ids, 1, -1 do if self.data.lv >= ids[i][1] or i == 1 then - self.skillLv = self.skillLv + i + if self.data.lv >= ids[i][1] then + self.skillLv = self.skillLv + i + end table.insert(self.rogueSkillList, ids[i]) break end