diff --git a/lua/app/userdata/chapter/chapter_data.lua b/lua/app/userdata/chapter/chapter_data.lua index f3ab7d93..aef458c4 100644 --- a/lua/app/userdata/chapter/chapter_data.lua +++ b/lua/app/userdata/chapter/chapter_data.lua @@ -21,7 +21,7 @@ function ChapterData:init(data, notChangeChapterId) if not notChangeChapterId then self.data.chapterId = data and data.chapterId or MIN_CHAPTER_ID end - self.data.maxChapterId = 2--data and data.maxChapterId or self.data.chapterId - 1 + self.data.maxChapterId = data and data.maxChapterId or self.data.chapterId - 1 self.data.chapterBoxInfo = data and data.chapterBoxInfo or {} self.data.chapterFightInfo = data and data.chapterFightInfo or {} end diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index 17414561..cf0f320f 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -161,7 +161,11 @@ function HeroEntity:canLvUp() end function HeroEntity:isUnlock() - return self:getUnlcokChapter() < DataManager.ChapterData:getMaxChapterId() + if self:getUnlcokChapter() <= DataManager.ChapterData:getMaxChapterId() or self:canLvUp() then + return true + end + + return false end function HeroEntity:isActived()