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