diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index f14f034..ef976b7 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -929,8 +929,12 @@ function _M.guideRpc(agent, data) local funcGuide = role:getProperty("funcGuide") local newerGuide = role:getProperty("newerGuide") - if cmd == 1 then + if cmdType == 1 then -- 新手引导 + local master = msg.master or -1 + local slave = msg.slave or -1 + if master < 0 or slave < 0 then return end + newerGuide = string.format("%d=%d",master,slave) role:updateProperty({field = "newerGuide", value = newerGuide}) elseif cmdType == 2 then -- 系统引导 -- libgit2 0.21.2