Commit 96018793d7ad653fcc4672d89b4954b85797dad1

Authored by zhouhaihai
1 parent b46ace5b

layer change

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