From 274552a558b04c4fa2e4e49ca96b62b7ee5104f4 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 24 Apr 2023 21:46:16 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/controller/battle_controller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/app/module/battle/controller/battle_controller.lua b/lua/app/module/battle/controller/battle_controller.lua index ec8c53c8..47a9dadb 100644 --- a/lua/app/module/battle/controller/battle_controller.lua +++ b/lua/app/module/battle/controller/battle_controller.lua @@ -1214,6 +1214,7 @@ function BattleController:generateGridType(skillTypeParameter) count = count + 1 end end + list = table.shuffle(list) if count > 0 then local minCount = math.min(skillTypeParameter[2], count) for i = minCount, 1, -1 do @@ -1612,7 +1613,7 @@ function BattleController:shuffleBoard() local anySkillCount = 0 local gridEntityCountMap = {} for posId, entity in pairs(self.battleData:getGridEnties()) do - if not entity:isCantFallType() then + if not entity:isCantFallType() and not entity:getIsIdle() then if entity:getSkillId() then local skillEntity = self.battleData:getSkillEntityBySkillId(entity:getSkillId()) local elementType = skillEntity:getPosition() @@ -1783,7 +1784,6 @@ function BattleController:findAttention() posIdMap = {} self:findLinkLine(posId, posIdMap, false, mainElementType, pathList) if table.nums(pathList) >= self:getMinEliminationCount() then - Logger.printTable(pathList) find = true break end