diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index ed125488..b5c94adf 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -570,6 +570,17 @@ func (this *player) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *cs.CMGrantInvit this.GetTeam().SendUpdateNotify() } +func (this *player) CMChooseBattleItem(hdr *f5.MsgHdr, msg *cs.CMChooseBattleItem) { + rspMsg := &cs.SMChooseBattleItem{} + if this.GetTeam().IsLock() { + rspMsg.Errcode = proto.Int32(1) + rspMsg.Errmsg = proto.String("team already started") + } else { + } + this.SendMsg(rspMsg) + this.GetTeam().SendUpdateNotify() +} + func (this *player) IsBattling() bool { return this.battling }