Commit 7bc0509ae722879d4478e5326aec3636b09b3e56
1 parent
d933495e
fix: 引导跳过逻辑修改
Showing
1 changed file
with
11 additions
and
5 deletions
Show diff stats
src/actions/RoleAction.lua
@@ -1332,11 +1332,17 @@ function _M.guideRpc(agent, data) | @@ -1332,11 +1332,17 @@ function _M.guideRpc(agent, data) | ||
1332 | local funcGuide = role:getProperty("funcGuide") | 1332 | local funcGuide = role:getProperty("funcGuide") |
1333 | if cmdType == 1 then | 1333 | if cmdType == 1 then |
1334 | -- 新手引导 | 1334 | -- 新手引导 |
1335 | - local master = msg.master or -1 | ||
1336 | - local slave = msg.slave or -1 | ||
1337 | - if master < 0 or slave < 0 then return end | ||
1338 | - | ||
1339 | - role:saveGuide(master, slave) | 1335 | + if msg.masters then |
1336 | + for _, master in pairs(msg.masters) do | ||
1337 | + role:saveGuide(master,1,true) | ||
1338 | + end | ||
1339 | + else | ||
1340 | + local master = msg.master or -1 | ||
1341 | + local slave = msg.slave or -1 | ||
1342 | + if master < 0 or slave < 0 then return end | ||
1343 | + role:saveGuide(master, slave) | ||
1344 | + end | ||
1345 | + | ||
1340 | elseif cmdType == 2 then | 1346 | elseif cmdType == 2 then |
1341 | -- 系统引导(玩家可选择是否进行) | 1347 | -- 系统引导(玩家可选择是否进行) |
1342 | if not msg.skip then return end | 1348 | if not msg.skip then return end |