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
local succ = false
local newlist = table.shuffle(tempList)
for _, posId in ipairs(newlist) do
tempList = table.shuffle(GFunc.getTable(tempList))
for _, posId in ipairs(tempList) do
local gridEntity = gridEntities[posId]
if gridEntity:isEmptyIdle() then
battleController.battleData:setGridType(posId, BattleConst.GRID_TYPE.JELLY)