This commit is contained in:
aozhiwei 2024-03-19 17:34:41 +08:00
parent 4f87a87c93
commit bf92dd60c2

View File

@ -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
}