Пример #1
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            _player = ObjectManager.Player;
            if (_player.ChampionName != ChampionName)
            {
                return;
            }

            DamageIndicator.Initialize(GetComboDamage);
            DamageIndicator.Enabled = true;
            DamageIndicator.DrawingColor = Color.Green;

            _javelinToss = new Spell(SpellSlot.Q, 1500f);
            _takedown = new Spell(SpellSlot.Q, 200f);
            _bushwhack = new Spell(SpellSlot.W, 900f);
            _pounce = new Spell(SpellSlot.W, 375f);
            _primalSurge = new Spell(SpellSlot.E, 600f);
            _swipe = new Spell(SpellSlot.E, 300f);
            _aspectOfTheCougar = new Spell(SpellSlot.R);

            HumanSpellList.AddRange(new[] { _javelinToss, _bushwhack, _primalSurge });
            CougarSpellList.AddRange(new[] { _takedown, _pounce, _swipe });

            _javelinToss.SetSkillshot(0.125f, 40f, 1300f, true, SkillshotType.SkillshotLine);
            _bushwhack.SetSkillshot(0.50f, 100f, 1500f, false, SkillshotType.SkillshotCircle);
            _swipe.SetSkillshot(0.50f, 375f, 1500f, false, SkillshotType.SkillshotCone);
            _pounce.SetSkillshot(0.50f, 400f, 1500f, false, SkillshotType.SkillshotCone);

            _healManager = new HealManager();
            _manaManager = new ManaManager();

            CreateMenu();

            Game.OnUpdate += Game_OnGameUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += OnSpellCast;
            Orbwalking.OnAttack += OnAttack;

            ShowNotification("Nidalee by blacky & iJabba", Color.Crimson, 4000);
            ShowNotification("Heal & ManaManager by iJabba", Color.Crimson, 4000);
        }