优化逻辑
This commit is contained in:
parent
f5ed280271
commit
213e82f2c1
@ -2102,7 +2102,10 @@ function BattleBaseController:fillThisPos(posId, columnCount, gridMap, reverse)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleBaseController:judgeGridEdgeCanFall(posId, fallPosId, reverse)
|
function BattleBaseController:judgeGridEdgeCanFall(posId, fallPosId, reverse)
|
||||||
|
local direction = ModuleManager.BattleManager:getPosDirection(posId, fallPosId)
|
||||||
|
local reverseDirection = ModuleManager.BattleManager:getReverseDirection(direction)
|
||||||
local fallDownPosId
|
local fallDownPosId
|
||||||
|
if reverseDirection then
|
||||||
if reverse then
|
if reverse then
|
||||||
--竖向
|
--竖向
|
||||||
local gridEdgeEntity = self.battleData:getGridEdgeEntity(fallPosId, BattleConst.BOARD_RANGE_TYPE.UP)
|
local gridEdgeEntity = self.battleData:getGridEdgeEntity(fallPosId, BattleConst.BOARD_RANGE_TYPE.UP)
|
||||||
@ -2132,6 +2135,7 @@ function BattleBaseController:judgeGridEdgeCanFall(posId, fallPosId, reverse)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--横向
|
--横向
|
||||||
if fallDownPosId then
|
if fallDownPosId then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user