Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev
This commit is contained in:
commit
06da81fc58
@ -469,6 +469,7 @@ function BattleController:takeGridEffect()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
effectGrid = table.shuffle(effectGrid)
|
||||||
local availableEffectTypeMap
|
local availableEffectTypeMap
|
||||||
for _, entity in ipairs(effectGrid) do
|
for _, entity in ipairs(effectGrid) do
|
||||||
local effectType = entity:getEffectType()
|
local effectType = entity:getEffectType()
|
||||||
|
|||||||
@ -26,11 +26,13 @@ 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
|
||||||
battleController.battleData:setGridType(posId, BattleConst.GRID_TYPE.JELLY)
|
battleController.battleData:setGridType(posId, BattleConst.GRID_TYPE.JELLY)
|
||||||
succ = true
|
succ = true
|
||||||
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user