死局问题修复
This commit is contained in:
parent
bbcaeea573
commit
4bda42441f
@ -1771,23 +1771,18 @@ function BattleController:findAttention()
|
||||
for c = 1, GConst.BattleConst.COLUMN_COUNT do
|
||||
local posId = ModuleManager.BattleManager:getPosId(r, c)
|
||||
local gridEntity = self.battleData:getGridEntity(posId)
|
||||
local skillId = gridEntity:getSkillId()
|
||||
local mainElementType = gridEntity:getElementType()
|
||||
if skillId then
|
||||
local skillEntity = self.battleData:getSkillEntityBySkillId(skillId)
|
||||
if skillEntity:getIgnoreElementType() then
|
||||
mainElementType = nil
|
||||
end
|
||||
end
|
||||
|
||||
if gridEntity:canChangeInfo() then
|
||||
pathList = {}
|
||||
posIdMap = {}
|
||||
self:findLinkLine(posId, posIdMap, mainElementType == nil, mainElementType, pathList)
|
||||
self:findLinkLine(posId, posIdMap, false, mainElementType, pathList)
|
||||
if table.nums(pathList) >= self:getMinEliminationCount() then
|
||||
Logger.printTable(pathList)
|
||||
find = true
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
if find then
|
||||
break
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user