解锁判定

This commit is contained in:
xiekaidong 2023-08-22 18:08:51 +08:00
parent 5b53c074b0
commit 18cd61d870

View File

@ -367,7 +367,12 @@ end
function HeroEntity:isUnlock() function HeroEntity:isUnlock()
if self:isActived() then if self:isActived() then
return true return true
else
if self:canLvUp() then
return true
end
end end
local unlockChapter = self:getUnlcokChapter() local unlockChapter = self:getUnlcokChapter()
if unlockChapter and unlockChapter <= DataManager.ChapterData:getMaxChapterId() then if unlockChapter and unlockChapter <= DataManager.ChapterData:getMaxChapterId() then
return true return true