消除bug修复
This commit is contained in:
parent
5d20ad362d
commit
405aad10f7
@ -134,13 +134,15 @@ function BattleManager:getFirstLineLastRowPosId(row, column)
|
||||
return self:getPosId(1 - row, column)
|
||||
end
|
||||
|
||||
function BattleManager:getAroundPosIdsByList(posId, boardrange, cludePosIdsMap, randomExclusion)
|
||||
function BattleManager:getAroundPosIdsByList(posId, boardrange, cludePosIdsMap)
|
||||
local posIdInfos = {}
|
||||
local randomExclusion = {}
|
||||
for _, info in ipairs(boardrange) do
|
||||
local list = self:getAroundPosIds(posId, info.type, info.range, cludePosIdsMap, randomExclusion)
|
||||
for _, info in ipairs(list) do
|
||||
table.insert(posIdInfos, info)
|
||||
cludePosIdsMap[info.posId] = nil
|
||||
randomExclusion[info.posId] = true
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -14,15 +14,15 @@ local function _takeElimination(posId, skillEntity, gridEntities, sequenceEntiti
|
||||
cludePosIdsMap[posId] = true
|
||||
end
|
||||
end
|
||||
local randomExclusion = {}
|
||||
for _, entity in ipairs(sequenceEntities) do
|
||||
randomExclusion[entity:getPosId()] = true
|
||||
cludePosIdsMap[entity:getPosId()] = nil
|
||||
end
|
||||
local posIdInfos = ModuleManager.BattleManager:getAroundPosIdsByList(posId, boardrange, cludePosIdsMap, randomExclusion)
|
||||
local posIdInfos = ModuleManager.BattleManager:getAroundPosIdsByList(posId, boardrange, cludePosIdsMap)
|
||||
cludePosIdsMap = {}
|
||||
for _, info in ipairs(posIdInfos) do
|
||||
cludePosIdsMap[info.posId] = info
|
||||
end
|
||||
|
||||
DataManager.BattleData:cacheSkillInfluenceGrids(cludePosIdsMap)
|
||||
end
|
||||
end
|
||||
|
||||
@ -174,7 +174,7 @@ function BattleGridEntity:canChangeInfo()
|
||||
end
|
||||
|
||||
function BattleGridEntity:canInfluenceBySkill()
|
||||
if self:isEmptyType() then
|
||||
if self:isEmptyType() and not self:getIsIdle() then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user