Ejemplo n.º 1
0
        private void UpdateLeagueTeamSize(CocApi cocApi, ILeagueGroup?leagueGroup)
        {
            if (leagueGroup is LeagueGroupApiModel leagueGroupApiModel)
            {
                if (leagueGroupApiModel.TeamSize > 15)
                {
                    return;
                }

                if (Clans.Any(c => c.AttackCount > 15))
                {
                    leagueGroupApiModel.TeamSize = 30;

                    cocApi.LeagueGroupTeamSizeChangeDetectedEvent(leagueGroupApiModel);
                }
            }
        }