protected void JoinTeam(Character chr, BattlegroundTeam team) { if (chr.Battlegrounds.Team != null) { chr.Battlegrounds.Team.RemoveMember(chr); } chr.Battlegrounds.Stats = CreateStats(); team.AddMember(chr); if (_status == BattlegroundStatus.None && PlayerCount >= (MaxPlayerCount * StartPlayerPct) / 100) { StartPreparation(); } }
protected void JoinTeam(Character chr, BattlegroundTeam team) { if (chr.Battlegrounds.Team != null) { chr.Battlegrounds.Team.RemoveMember(chr); } chr.Battlegrounds.Stats = this.CreateStats(); team.AddMember(chr); if (this._status != BattlegroundStatus.None || (long)this.PlayerCount < (long)this.MaxPlayerCount * (long)Battleground.StartPlayerPct / 100L) { return; } this.StartPreparation(); }