From 18cd61d870ddf77dbba7916680a2be218f3835d0 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Tue, 22 Aug 2023 18:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E9=94=81=E5=88=A4=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/userdata/hero/hero_entity.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/app/userdata/hero/hero_entity.lua b/lua/app/userdata/hero/hero_entity.lua index 3fb6af2f..630a2746 100644 --- a/lua/app/userdata/hero/hero_entity.lua +++ b/lua/app/userdata/hero/hero_entity.lua @@ -367,7 +367,12 @@ end function HeroEntity:isUnlock() if self:isActived() then return true + else + if self:canLvUp() then + return true + end end + local unlockChapter = self:getUnlcokChapter() if unlockChapter and unlockChapter <= DataManager.ChapterData:getMaxChapterId() then return true