Пример #1
0
        /// <summary>
        ///     Init bot functions.
        /// </summary>
        public static void Init()
        {
            try
            {
                // Initialize Genesis Spell Library.
                SpellManager.Initialize();
                SpellLibrary.Initialize();

                // Initialize ObjectsManager.
                ObjectsManager.Init();

                SpecialChamps.Init();

                // Overrides Orbwalker Movements
                Orbwalker.OverrideOrbwalkPosition += OverrideOrbwalkPosition;

                // Initialize AutoLvlup.
                LvlupSpells.Init();

                // Initialize TeamFights Detector.
                TeamFightsDetection.Init();

                Obj_AI_Base.OnBasicAttack        += Obj_AI_Base_OnBasicAttack;
                Gapcloser.OnGapcloser            += SpellsCasting.GapcloserOnOnGapcloser;
                Interrupter.OnInterruptableSpell += SpellsCasting.Interrupter_OnInterruptableSpell;
                Obj_AI_Base.OnBasicAttack        += SpellsCasting.Obj_AI_Base_OnBasicAttack;
                Obj_AI_Base.OnProcessSpellCast   += SpellsCasting.Obj_AI_Base_OnProcessSpellCast;
            }
            catch (Exception ex)
            {
                Logger.Send("There was an Error While Initialize Brain", ex, Logger.LogLevel.Error);
            }
        }
Пример #2
0
        /// <summary>
        ///     Init bot functions.
        /// </summary>
        public static void Init()
        {
            try
            {
                // Initialize Genesis Spell Library.
                SpellManager.Initialize();
                SpellLibrary.Initialize();

                // Initialize The ModesManager
                ModesManager.Init();

                // Initialize ObjectsManager.
                ObjectsManager.Init();

                // Initialize Special Champions Logic.
                SpecialChamps.Init();

                // Initialize Cache.
                Cache.Init();

                // Overrides Orbwalker Movements
                Orbwalker.OverrideOrbwalkPosition += OverrideOrbwalkPosition;

                // Initialize AutoLvlup.
                LvlupSpells.Init();

                // Initialize TeamFights Detector.
                Detector.Init();

                Spellbook.OnCastSpell += delegate(Spellbook sender, SpellbookCastSpellEventArgs args)
                {
                    if (sender.Owner.IsMe && RunningItDownMid)
                    {
                        args.Process = false;
                        Logger.Send("Blocked: " + args.Slot + " Reason: Running It Down Mid");
                    }
                };

                Obj_AI_Base.OnBasicAttack        += Obj_AI_Base_OnBasicAttack;
                Gapcloser.OnGapcloser            += SpellsCasting.GapcloserOnOnGapcloser;
                Interrupter.OnInterruptableSpell += SpellsCasting.Interrupter_OnInterruptableSpell;
                //Obj_AI_Base.OnBasicAttack += SpellsCasting.Obj_AI_Base_OnBasicAttack;
                //Obj_AI_Base.OnProcessSpellCast += SpellsCasting.Obj_AI_Base_OnProcessSpellCast;
            }
            catch (Exception ex)
            {
                Logger.Send("There was an Error While Initialize Brain", ex, Logger.LogLevel.Error);
            }
        }