Exemplo n.º 1
0
        private static void OnUpdate(EventArgs args)
        {
            switch (Menus.Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                OnCombo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                OnMixed();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                OnJungle();
                OnClear();
                break;
            }

            if (Menus.Config.Item("manual.r").GetValue <KeyBind>().Active)
            {
                Orbwalking.MoveTo(Game.CursorPos);

                if (Spells.R.IsReady() && Utilities.Enabled("r.combo"))
                {
                    foreach (var enemy in HeroManager.Enemies.Where(x => x.IsValidTarget(Spells.R.Range)))
                    {
                        if (Utilities.Enabled("r." + enemy.ChampionName) &&
                            ObjectManager.Player.CountEnemiesInRange(Utilities.Slider("max.r.distance")) <= Utilities.Slider("min.enemy"))
                        {
                            Spells.R.Cast(enemy.Position);
                        }
                    }
                }
            }
        }
Exemplo n.º 2
0
        private static void OnClear()
        {
            if (Spells.Q.IsReady() && Utilities.Enabled("q.clear") && Utilities.IsKled())
            {
                var minions = MinionManager.GetMinions(ObjectManager.Player.Position, Spells.Q.Range, MinionTypes.All,
                                                       MinionTeam.NotAlly);

                var minioncount = Spells.Q.GetLineFarmLocation(minions);
                if (minions == null || minions.Count == 0)
                {
                    return;
                }

                if (minioncount.MinionsHit >= Utilities.Slider("min.count"))
                {
                    Spells.Q.Cast(minioncount.Position);
                }
            }
        }