Commit 96018793d7ad653fcc4672d89b4954b85797dad1
1 parent
b46ace5b
layer change
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/adv/Adv.lua
... | ... | @@ -1094,10 +1094,10 @@ local function clickOut(self, room, block, params, isExit) |
1094 | 1094 | end |
1095 | 1095 | |
1096 | 1096 | if #self.mapStack > 1 then -- 处于夹层中 |
1097 | + self:backLayer(-1) | |
1097 | 1098 | local oldMapIdx = self:getCurMapIdx() |
1098 | 1099 | table.remove(self.mapStack) --退出夹层 |
1099 | 1100 | self.battle:iLayerChange(oldMapIdx) |
1100 | - self:backLayer(-1) | |
1101 | 1101 | else --处于底层 |
1102 | 1102 | |
1103 | 1103 | local advPass = self.owner:getProperty("advPass") |
... | ... | @@ -1604,6 +1604,7 @@ end |
1604 | 1604 | |
1605 | 1605 | local function clickLayer(self, room, block, params) |
1606 | 1606 | local oldMapIdx = self:getCurMapIdx() |
1607 | + self:backLayer(1) | |
1607 | 1608 | if block.event.mapIdx then |
1608 | 1609 | table.insert(self.mapStack, block.event.mapIdx) --进入夹层 |
1609 | 1610 | else |
... | ... | @@ -1620,7 +1621,6 @@ local function clickLayer(self, room, block, params) |
1620 | 1621 | self:checkAchievement(Adv.AchievType.EnterILayer, 1, mapId) |
1621 | 1622 | end |
1622 | 1623 | self.battle:iLayerChange(oldMapIdx) |
1623 | - self:backLayer(1) | |
1624 | 1624 | return true |
1625 | 1625 | end |
1626 | 1626 | ... | ... |