Exemplo n.º 1
0
        private static void OnGameUpdate(EventArgs args)
        {
            if (GameObjects.Player.IsDead)
            {
                return;
            }
            Combo.SemiR();
            Killsteal.Cast();

            if (Extension.IsCulling())
            {
                if (ComboMenu.Rbool.Enabled &&
                    (Q.IsReady() || W.IsReady() || E.IsReady()) &&
                    GameObjects.EnemyHeroes.Any(x => x.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange(x))))
                {
                    R.Cast();
                }
            }

            switch (Orbwalker.ActiveMode)
            {
            case OrbwalkerMode.Combo:
                if (E.IsReady())
                {
                    Combo.CastE();
                }

                if (R.IsReady())
                {
                    Combo.CastR();
                }
                break;

            case OrbwalkerMode.LaneClear:
                if (Q.IsReady())
                {
                    Laneclear.CastQ();
                }

                if (W.IsReady())
                {
                    Laneclear.CastW();
                }
                break;

            case OrbwalkerMode.Harass:
                if (Q.IsReady())
                {
                    Harass.CastQ();
                    Harass.CastExtendedQ();
                }

                if (W.IsReady())
                {
                    Harass.CastW();
                }
                break;
            }
        }