diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index 33a6c355..d80e7518 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -277,7 +277,7 @@ func (this *player) CMSetReady(hdr *f5.MsgHdr, msg *cs.CMSetReady) { this.GetTeam().SendUpdateNotify() } -func (this *player) CMSpecSkill(hdr *f5.MsgHdr, msg *cs.CMSetSpecSkill) { +func (this *player) CMSetSpecSkill(hdr *f5.MsgHdr, msg *cs.CMSetSpecSkill) { rspMsg := &cs.SMSetSpecSkill{} if this.GetTeam().Started() { rspMsg.Errcode = proto.Int32(1) @@ -378,6 +378,7 @@ func (this *player) updateChoose(skillId int32, heroUniId string, this.hero.quality = q5.ToInt32(rspObj.Info.HeroInfo.Quality) this.hero.specSkill = q5.ToInt32(rspObj.Info.HeroInfo.SpecSkill) } + cb(0, "") } }