Commit b021e351789a5713cb23dcb59d2f9bdee8cce72c

Authored by liuzujun
2 parents 63190722 1ef9a7e3

Merge branch 'tr/bugfix' of 120.26.43.151:wasteland/server into tr/bugfix

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
src/actions/AdvAction.lua
... ... @@ -134,7 +134,7 @@ function _M.startAdvRpc( agent, data )
134 134 else -- 普通模式判断
135 135 if layer >= chapterData.limitlevel then return 4 end
136 136  
137   - local relayData = role:getAdvData():isHaveRelay(layer, chapterId)
  137 + local relayData = role:getAdvData():isHaveRelay(layer, chapterId, true)
138 138 if not relayData then return 6 end -- 不是中继层
139 139 if layer ~= 1 then
140 140 if (advPass[chapterId] or 0) < relayData.floor then return 21 end
... ...
src/adv/Adv.lua
... ... @@ -61,10 +61,10 @@ function Adv:initByInfo(advInfo)
61 61 self:initBattle(advInfo)
62 62 end
63 63 -- 找出level 是否存在中继层
64   -function Adv:isHaveRelay(level, chapterId)
  64 +function Adv:isHaveRelay(level, chapterId, force)
65 65 level = level or self.level
66 66 chapterId = chapterId or self.chapterId
67   - if level == 1 then return end
  67 + if level == 1 and not force then return end
68 68  
69 69 local campsiteCsv = csvdb["adv_chapter_campsiteCsv"][chapterId]
70 70 for _, campsite in ipairs(campsiteCsv) do
... ...