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() {