diff --git a/modules/hero/api_talentlearn.go b/modules/hero/api_talentlearn.go index 52f54a1a5..b2ad7afa0 100644 --- a/modules/hero/api_talentlearn.go +++ b/modules/hero/api_talentlearn.go @@ -217,6 +217,11 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe // 满回响 if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) { tasks = append(tasks, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race)) + if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { + this.chat.SendSysChatToWorld(session, comm.ChatSystem10, heroObj, int32(len(talent.Talent)), 0, user.Name, heroObj.HeroID) + } else { + this.module.Errorf("no found userdata uid:%s", session.GetUserId()) + } } tasks = append(tasks, comm.GetBuriedParam(comm.Rtype199, 1)) go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {