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