bug修复
This commit is contained in:
parent
ee1b719517
commit
24a775cfe8
@ -569,9 +569,6 @@ function BattleController:onLinkEnter(entity, posId, isVirtual)
|
|||||||
if self.battleData:alreadyInsertSequence(posId) then
|
if self.battleData:alreadyInsertSequence(posId) then
|
||||||
local info = sequence[#sequence - 1]
|
local info = sequence[#sequence - 1]
|
||||||
local beforePosId = info and info.posId
|
local beforePosId = info and info.posId
|
||||||
if not beforePosId then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
if beforePosId == posId then -- 进入的是倒数第二个,则移除倒数第一个
|
if beforePosId == posId then -- 进入的是倒数第二个,则移除倒数第一个
|
||||||
local snapshot = self.battleData:removeGridSequence(lastPosId)
|
local snapshot = self.battleData:removeGridSequence(lastPosId)
|
||||||
if snapshot then -- 如果有快照,则恢复一次
|
if snapshot then -- 如果有快照,则恢复一次
|
||||||
@ -590,8 +587,8 @@ function BattleController:onLinkEnter(entity, posId, isVirtual)
|
|||||||
|
|
||||||
self:findSkillInfluenceGrids()
|
self:findSkillInfluenceGrids()
|
||||||
self:onLinkChange()
|
self:onLinkChange()
|
||||||
return
|
|
||||||
end
|
end
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local skillId = entity:getSkillId()
|
local skillId = entity:getSkillId()
|
||||||
|
|||||||
@ -111,7 +111,7 @@ function MainCityUI:_bind()
|
|||||||
self:bind(DataManager.HeroData, "isDirty", function(binder, value)
|
self:bind(DataManager.HeroData, "isDirty", function(binder, value)
|
||||||
if self.selectedIndex == GConst.MainCityConst.BOTTOM_PAGE.HERO then
|
if self.selectedIndex == GConst.MainCityConst.BOTTOM_PAGE.HERO then
|
||||||
self.subComps[self.selectedIndex]:refresh()
|
self.subComps[self.selectedIndex]:refresh()
|
||||||
elseif self.selectedIndex == GConst.MainCityConst.MAIN then
|
elseif self.selectedIndex == GConst.MainCityConst.BOTTOM_PAGE.MAIN then
|
||||||
self.subComps[self.selectedIndex]:refreshStageFormaion()
|
self.subComps[self.selectedIndex]:refreshStageFormaion()
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
@ -319,24 +319,24 @@ function MainCityUI:checkTutorial()
|
|||||||
-- end
|
-- end
|
||||||
-- end
|
-- end
|
||||||
|
|
||||||
Logger.logHighlight(DataManager.ChapterData:getMaxChapterId())
|
|
||||||
if DataManager.ChapterData:getMaxChapterId() == 1 then
|
if DataManager.ChapterData:getMaxChapterId() == 1 then
|
||||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.PASS_ONE_CHAPTER) then
|
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.PASS_ONE_CHAPTER) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if DataManager.ChapterData:getMaxChapterId() == 3 then
|
||||||
|
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.PASS_THREE_CHAPTER) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if DataManager.ChapterData:boxCanGet(2, 1) then
|
if DataManager.ChapterData:boxCanGet(2, 1) then
|
||||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.TWO_CHAPTER_BOX_CAN_GOT) then
|
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.TWO_CHAPTER_BOX_CAN_GOT) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if DataManager.ChapterData:getMaxChapterId() == 3 then
|
|
||||||
if ModuleManager.TutorialManager:checkFuncTutorial(GConst.TutorialConst.PASS_THREE_CHAPTER) then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return MainCityUI
|
return MainCityUI
|
||||||
Loading…
x
Reference in New Issue
Block a user