From c7bc4d165f0f96d254ca718308d6afb8a6706d74 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 11 Oct 2024 19:12:25 +0800 Subject: [PATCH] 1 --- server/matchserver/player/player.go | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 }