private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Rengar")
            {
                return;
            }

            Variables.Q = new Spell.Active(SpellSlot.Q);
            Variables.W = new Spell.Skillshot(SpellSlot.W, 500, SkillShotType.Circular, 250, 2000, 100);
            Variables.W.AllowedCollisionCount = -1;
            Variables.E = new Spell.Skillshot(SpellSlot.E, 1000, SkillShotType.Linear, 250, 1500, 140);
            Variables.R = new Spell.Active(SpellSlot.R);

            foreach (var spell in
                     Player.Instance.Spellbook.Spells.Where(
                         i =>
                         i.Name.ToLower().Contains("smite") &&
                         (i.Slot == SpellSlot.Summoner1 || i.Slot == SpellSlot.Summoner2)))
            {
                Variables.Smite = spell.Slot;
            }

            Config.Initialize();
            subOrb.Initialize();
            Combo.Initialize();
            Harass.Initialize();
            LaneClear.Initialize();
            JungleClear.Initialize();
            Auto.Initialize();
            Drawing.Initialize();
            Magnet.Initialize();
            Targetting.Initialize();
        }
Exemplo n.º 2
0
 public static void Orbwalker_OnPostAttack(AttackableUnit target, EventArgs args)
 {
     Combo.Orbwalker_OnPostAttack(target, args);
     Harass.Orbwalker_OnPostAttack(target, args);
     LaneClear.Orbwalker_OnPostAttack(target, args);
     JungleClear.Orbwalker_OnPostAttack(target, args);
 }