bug修复
This commit is contained in:
parent
6e65ce411f
commit
5340ecd4b7
@ -1339,18 +1339,24 @@ end
|
||||
function BattleController:generateBoard(isFirst)
|
||||
local boardList, _, mysteryBoxIndexMap = self:getInitBoard()
|
||||
if self.curBoardIndex and self.curBoardIndex >= #boardList then
|
||||
self.needWaitingBoardOver = false
|
||||
if isFirst then
|
||||
self.needWaitingBoardOver = false
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
if not self.battleUI then
|
||||
self.needWaitingBoardOver = false
|
||||
if isFirst then
|
||||
self.needWaitingBoardOver = false
|
||||
end
|
||||
return
|
||||
end
|
||||
|
||||
self.curBoardIndex = (self.curBoardIndex or 0) + 1
|
||||
if not boardList[self.curBoardIndex] then -- 容错
|
||||
self.needWaitingBoardOver = false
|
||||
if isFirst then
|
||||
self.needWaitingBoardOver = false
|
||||
end
|
||||
return
|
||||
end
|
||||
local board = boardList[self.curBoardIndex].board
|
||||
@ -1361,10 +1367,11 @@ function BattleController:generateBoard(isFirst)
|
||||
self.battleUI:switchBoard(function()
|
||||
self.battleData:refreshBoard(board, self:getBlockIcon())
|
||||
self.battleUI:initGridCell(function()
|
||||
self.needWaitingBoardOver = false
|
||||
if isFirst then
|
||||
self.needWaitingBoardOver = false
|
||||
end
|
||||
end)
|
||||
end, function()
|
||||
-- self:enterRoundBegin()
|
||||
end, isFirst)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user