bug修复

This commit is contained in:
xiekaidong 2023-05-19 21:44:36 +08:00
parent d348d13fcc
commit fd2c150b19

View File

@ -26,8 +26,8 @@ local function _crossSpread(entity, gridEntities, battleController, onlyCheck)
end end
local succ = false local succ = false
local newlist = table.shuffle(tempList) tempList = table.shuffle(GFunc.getTable(tempList))
for _, posId in ipairs(newlist) do for _, posId in ipairs(tempList) do
local gridEntity = gridEntities[posId] local gridEntity = gridEntities[posId]
if gridEntity:isEmptyIdle() then if gridEntity:isEmptyIdle() then
battleController.battleData:setGridType(posId, BattleConst.GRID_TYPE.JELLY) battleController.battleData:setGridType(posId, BattleConst.GRID_TYPE.JELLY)