随机位置

This commit is contained in:
xiekaidong 2023-05-19 20:59:18 +08:00
parent 16c0078704
commit d2eff9d230

View File

@ -26,6 +26,7 @@ local function _crossSpread(entity, gridEntities, battleController, onlyCheck)
end end
local succ = false local succ = false
tempList = table.shuffle(tempList)
for _, posId in ipairs(tempList) do for _, posId in ipairs(tempList) do
local gridEntity = gridEntities[posId] local gridEntity = gridEntities[posId]
if gridEntity:isEmptyIdle() then if gridEntity:isEmptyIdle() then