diff --git a/server/matchserver/team/team.go b/server/matchserver/team/team.go index 88499e0c..a24a3798 100644 --- a/server/matchserver/team/team.go +++ b/server/matchserver/team/team.go @@ -335,6 +335,17 @@ func (this *team) canMatch(targetT *team) bool { if this == targetT { return false } + if this.mapInfo.MapId != targetT.mapInfo.MapId { + return false + } + if this.GetMemberNum() <= 0 || targetT.GetMemberNum() <= 0 { + return false + } + for _, m := range this.accountIdHash { + if targetT.GetMemberByAccountId(m.GetAccountId()) != nil { + return false + } + } return true }