bug修复
This commit is contained in:
parent
03febf108a
commit
78704c6e35
@ -298,7 +298,18 @@ function BattleBaseController:onLinkChange()
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not self:getCurActionUnitComp():getActiveSkillLimit() then
|
if not self:getCurActionUnitComp():getActiveSkillLimit() then
|
||||||
local aniSequence, influenceElementType, lineCount, elementTypeMap, linkElementType = self:calculateCurElimination(true)
|
local aniSequence, influenceElementType, lineCount, elementTypeMap, linkElementType, effectGridMap, randomPosList = self:calculateCurElimination(true)
|
||||||
|
if randomPosList then
|
||||||
|
for _, posId in ipairs(randomPosList) do
|
||||||
|
local gridEntity = self.battleData:getGridEntity(posId)
|
||||||
|
if gridEntity and gridEntity:canLink() then
|
||||||
|
local elementType = gridEntity:getElementType()
|
||||||
|
if elementTypeMap[elementType] and elementTypeMap[elementType] > 0 then
|
||||||
|
elementTypeMap[elementType] = elementTypeMap[elementType] - 1
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
self.battleUI:refreshSkill(elementTypeMap, count > 0, self.curActionSide)
|
self.battleUI:refreshSkill(elementTypeMap, count > 0, self.curActionSide)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -1197,7 +1208,7 @@ function BattleBaseController:calculateCurElimination(onlyCheck)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return self.aniSequence, influenceElementTypeMap, lineCount, self.elementTypeMap, linkElementType, self.effectGridMap
|
return self.aniSequence, influenceElementTypeMap, lineCount, self.elementTypeMap, linkElementType, self.effectGridMap, randomPosList
|
||||||
end
|
end
|
||||||
|
|
||||||
function BattleBaseController:dealGridBreak(posId, condition, time, breakedMap, sequenceMap, aniSequence, gridMap, onlyCheck)
|
function BattleBaseController:dealGridBreak(posId, condition, time, breakedMap, sequenceMap, aniSequence, gridMap, onlyCheck)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user