Exemplo n.º 1
0
        private void GameOnUpdate(EventArgs args)
        {
            EvolvedSpells();
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            Orbwalker.SetAttack(!IsInvisible());
            KillStealCheck();
            if (Config.Item("AssassinateTarget").GetValue <KeyBind>().Active)
            {
                var target = AssassinManager();
                if ((target == null) || !target.IsValidTarget())
                {
                    Orbwalking.MoveTo(Game.CursorPos);
                    return;
                }
                if (target.IsValidTarget(E.Range))
                {
                    Orbwalking.Orbwalk(target, Game.CursorPos);
                    AssassinateProgram(target);
                }
            }
            switch (Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                JungleClear();
                LaneClear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                LastHit();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                HarassMode();
                break;
            }
        }