예제 #1
0
        private static void OnGameUpdate(EventArgs args)
        {
            Killsteal.CastQ();
            Killsteal.CastE();
            Harass.CastE();
            Automatic.CastR();
            Automatic.CastW();
            switch (Orbwalker.ActiveMode)
            {
            case OrbwalkerMode.Combo:
                if (Configs.AutomaticMenu.MinionsChase.Enabled)
                {
                    if (Orbwalker.GetTarget() == null)
                    {
                        if (GameObjects.EnemyHeroes.Any(x => x.IsValidTarget(1300f) && GameObjects.Player.Distance(x) > GameObjects.Player.AttackRange))
                        {
                            var minion = GameObjects.EnemyMinions.OrderBy(x => x.Distance(GameObjects.Player)).FirstOrDefault();
                            if (minion != null)
                            {
                                Orbwalker.Orbwalk(minion, Game.CursorPos);
                            }
                        }
                    }
                }
                Combo.CastQ();
                break;

            case OrbwalkerMode.Harass:
                Harass.CastQ();
                break;

            case OrbwalkerMode.LaneClear:
                Jungleclear.CastQ();
                Jungleclear.CastE();
                Laneclear.CastE();
                break;

            case OrbwalkerMode.LastHit:
                Lasthit.CastE();
                break;
            }
        }