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