diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index 1a00b015..e5017cd8 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -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