diff --git a/server/matchserver/team/team.go b/server/matchserver/team/team.go index 33c477a8..33ca1db8 100644 --- a/server/matchserver/team/team.go +++ b/server/matchserver/team/team.go @@ -216,7 +216,7 @@ func (this *team) chooseNextLeader() { } func (this *team) Leave(hum common.Player) { - if !this.Started() { + if !this.IsLock() { if this.IsLeader(hum) { delete(this.memberIdHash, hum.GetAccountId()) if this.GetMemberNum() > 0 { @@ -232,7 +232,7 @@ func (this *team) Leave(hum common.Player) { } func (this *team) Disband() { - if !this.Started() { + if !this.IsLock() { if this.GetMemberNum() < 0 { } else { @@ -244,7 +244,7 @@ func (this *team) Disband() { } func (this *team) KickOut(hum common.Player, targetId string) { - if !this.Started() { + if !this.IsLock() { if this.IsLeader(hum) { target := this.GetMemberByAccountId(targetId) if target != nil && target != hum { @@ -258,7 +258,7 @@ func (this *team) KickOut(hum common.Player, targetId string) { } func (this *team) HandoverLeader(hum common.Player, targetId string) { - if !this.Started() { + if !this.IsLock() { if this.IsLeader(hum) { target := this.GetMemberByAccountId(targetId) if target != nil && target != hum {