From 7ec2df83815c74c8278ed52aadb5ea5d6de33d75 Mon Sep 17 00:00:00 2001 From: by <123456@qq.com> Date: Fri, 1 Nov 2024 14:43:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=95=E5=AF=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worldsrv/action_player.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldsrv/action_player.go b/worldsrv/action_player.go index f9945dc..353eacf 100644 --- a/worldsrv/action_player.go +++ b/worldsrv/action_player.go @@ -3097,9 +3097,6 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in p.GuideData = make(map[int32]int32) } stepId := p.GuideStep + 1 - if msg.GuideId != 1 { - stepId = int32(msg.Param[0]) - } pack := &player_proto.SCUpdateAttribute{ OpRetCode: player_proto.OpResultCode_OPRC_Error, Tp: msg.GetTp(), @@ -3110,6 +3107,9 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in send := func() { p.SendToClient(int(player_proto.PlayerPacketID_PACKET_SCUpdateAttribute), pack) logger.Logger.Tracef("SCUpdateAttribute %v", pack) + if msg.GuideId != 1 { + stepId = p.GuideData[msg.GuideId] + } // 日志 if pack.OpRetCode == player_proto.OpResultCode_OPRC_Sucess { switch msg.GetTp() {