1
This commit is contained in:
parent
873447d84b
commit
c7bc4d165f
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user