diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index 1a945b14..0e189653 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -150,6 +150,7 @@ type Player interface { FillMFTeamMember(*cs.MFTeamMember) GetSortIdx() int32 SetSortIdx(int32) + IsBattling() bool GenNextCopy() Player } diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index 5ce5ad23..c12156c2 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -38,6 +38,7 @@ type player struct { totalLucky int64 hero hero team common.Team + battling bool sortIdx int32 } @@ -541,6 +542,10 @@ func (this *player) CMGrantInvitePermission(hdr *f5.MsgHdr, msg *cs.CMGrantInvit this.GetTeam().SendUpdateNotify() } +func (this *player) IsBattling() bool { + return this.battling +} + func newPlayer() *player { hum := new(player) return hum