diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index 515bb7e..63ab9c9 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -1094,10 +1094,10 @@ local function clickOut(self, room, block, params, isExit) end if #self.mapStack > 1 then -- 处于夹层中 + self:backLayer(-1) local oldMapIdx = self:getCurMapIdx() table.remove(self.mapStack) --退出夹层 self.battle:iLayerChange(oldMapIdx) - self:backLayer(-1) else --处于底层 local advPass = self.owner:getProperty("advPass") @@ -1604,6 +1604,7 @@ end local function clickLayer(self, room, block, params) local oldMapIdx = self:getCurMapIdx() + self:backLayer(1) if block.event.mapIdx then table.insert(self.mapStack, block.event.mapIdx) --进入夹层 else @@ -1620,7 +1621,6 @@ local function clickLayer(self, room, block, params) self:checkAchievement(Adv.AchievType.EnterILayer, 1, mapId) end self.battle:iLayerChange(oldMapIdx) - self:backLayer(1) return true end -- libgit2 0.21.2