Ejemplo n.º 1
0
        private static void OnUpdate(EventArgs args)
        {
            QHitChance = QMenu["mediumpred"].Cast <CheckBox>().CurrentValue ? HitChance.Medium : HitChance.High;
            Killsteal();
            SkinChange();
            Ascension();
            RanduinU();
            ZhonyaU();
            if (MiscMenu["lvlup"].Cast <CheckBox>().CurrentValue)
            {
                LevelUpSpells();
            }
            AutoCast(immobile: AutoCastMenu["qi"].Cast <CheckBox>().CurrentValue,
                     dashing: AutoCastMenu["qd"].Cast <CheckBox>().CurrentValue);
            {
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    Combo(ComboMenu["usecomboq"].Cast <CheckBox>().CurrentValue);
                }
                UseW(ComboMenu["usecombow"].Cast <CheckBox>().CurrentValue);
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) ||
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                LaneClearA.LaneClear();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                LastHitA.LastHitB();
            }

            if (MiscMenu["useexhaust"].Cast <CheckBox>().CurrentValue)
            {
                foreach (
                    var enemy in
                    ObjectManager.Get <AIHeroClient>()
                    .Where(a => a.IsEnemy && a.IsValidTarget(Exhaust.Range))
                    .Where(enemy => MiscMenu[enemy.ChampionName + "exhaust"].Cast <CheckBox>().CurrentValue))
                {
                    if (enemy.IsFacing(Me))
                    {
                        if (!(Me.HealthPercent < 50))
                        {
                            continue;
                        }
                        Exhaust.Cast(enemy);
                        return;
                    }
                    if (!(enemy.HealthPercent < 50))
                    {
                        continue;
                    }
                    Exhaust.Cast(enemy);
                    return;
                }
            }
        }
Ejemplo n.º 2
0
 private static void Tick(EventArgs args)
 {
     QHitChance = QMenu["mediumpred"].Cast <CheckBox>().CurrentValue ? HitChance.Medium : HitChance.High;
     WHitChance = WMenu["mediumpred"].Cast <CheckBox>().CurrentValue ? HitChance.Medium : HitChance.High;
     Killsteal();
     AutoCast();
     if (Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo)
     {
         Combo(ComboMenu["usecomboq"].Cast <CheckBox>().CurrentValue,
               ComboMenu["usecombow"].Cast <CheckBox>().CurrentValue,
               ComboMenu["usecombor"].Cast <CheckBox>().CurrentValue);
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) ||
         Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
     {
         LaneClearA.LaneClear();
     }
     SkinChange();
 }