解锁判定
This commit is contained in:
parent
5b53c074b0
commit
18cd61d870
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user