竞技场bug修复
This commit is contained in:
parent
a29a9606bf
commit
f2a8e2c8a4
@ -217,6 +217,8 @@ function BattleControllerPVP:onFillBoardOver(...)
|
|||||||
for posId, entity in pairs(self.battleData:getGridEnties()) do
|
for posId, entity in pairs(self.battleData:getGridEnties()) do
|
||||||
if self:getPosIdInCurActionBoardRowRange(posId) and entity:getSkillId() then
|
if self:getPosIdInCurActionBoardRowRange(posId) and entity:getSkillId() then
|
||||||
if entity:getSkillSide() ~= self.curActionSide then
|
if entity:getSkillSide() ~= self.curActionSide then
|
||||||
|
local team = self:getSideTeam(self.curActionSide)
|
||||||
|
local unitComp = team:getMainUnit()
|
||||||
local skillMatchType = entity:getSkillMatchType()
|
local skillMatchType = entity:getSkillMatchType()
|
||||||
if skillMatchType then
|
if skillMatchType then
|
||||||
local skillEntity = self.battleData:getSkillEntityByElement(skillMatchType, self.curActionSide)
|
local skillEntity = self.battleData:getSkillEntityByElement(skillMatchType, self.curActionSide)
|
||||||
@ -224,6 +226,15 @@ function BattleControllerPVP:onFillBoardOver(...)
|
|||||||
entity:setSkilId(skillEntity:getSkillId(), false, self.curActionSide)
|
entity:setSkilId(skillEntity:getSkillId(), false, self.curActionSide)
|
||||||
self.battleUI:playChangeElementSfx(posId, index)
|
self.battleUI:playChangeElementSfx(posId, index)
|
||||||
index = index + 1
|
index = index + 1
|
||||||
|
if unitComp.unitEntity then
|
||||||
|
if unitComp.unitEntity:getActiveSkillLimit() then
|
||||||
|
entity:setGridType(BattleConst.GRID_TYPE.LOCK)
|
||||||
|
else
|
||||||
|
entity:setGridType(BattleConst.GRID_TYPE.EMPTY)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
entity:setGridType(BattleConst.GRID_TYPE.EMPTY)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user