Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev

This commit is contained in:
chenxi 2023-05-19 21:23:09 +08:00
commit 06da81fc58
2 changed files with 3 additions and 0 deletions

View File

@ -469,6 +469,7 @@ function BattleController:takeGridEffect()
end
end
effectGrid = table.shuffle(effectGrid)
local availableEffectTypeMap
for _, entity in ipairs(effectGrid) do
local effectType = entity:getEffectType()

View File

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