Commit 50bcef876b7264dafbb2a8eab763e278283f2c05
1 parent
814c57b1
代理拾荒开始不移除拾荒队伍阵容
Showing
1 changed file
with
4 additions
and
3 deletions
Show diff stats
src/actions/AdvAction.lua
... | ... | @@ -247,13 +247,14 @@ function _M.startHangRpc(agent, data) |
247 | 247 | info.format.heros[slot] = heroId |
248 | 248 | end |
249 | 249 | info.time = skynet.timex() + adv_idle_time --挂机时间 |
250 | + info.duration = adv_idle_time | |
250 | 251 | info.campId = campId |
251 | 252 | info.index = index |
252 | 253 | |
253 | 254 | -- 没有在战斗 用team来挂机了 把team清掉 |
254 | - if not role:getAdvData():isRunning() then | |
255 | - role:updateProperty({field = "advTeam", value = {}}) | |
256 | - end | |
255 | + --if not role:getAdvData():isRunning() then | |
256 | + -- role:updateProperty({field = "advTeam", value = {}}) | |
257 | + --end | |
257 | 258 | role:pushMsg({type = "adv", slot = chapterId, time = adv_idle_time}) |
258 | 259 | role:changeUpdates({{type = "advHang", field = chapterId, value = info}}) |
259 | 260 | ... | ... |