Example #1
0
        private static void OnUpdate(EventArgs args)
        {
            if (Player.IsDead || Player.IsRecalling())
            {
                return;
            }

            Healing();

            if (Misc.Active("Misc.AutoEStunned"))
            {
                AutoEStunned();
            }

            if (Misc.Active("ultifadcignited"))
            {
                AutoUltIgniteADC();
            }

            if (Misc.Active("Misc.UseMikael"))
            {
                UseMikaels();
            }


            Killsteal();

            var target = TargetSelector.GetTarget(
                Spells[SpellSlot.Q].Range, TargetSelector.DamageType.Magical);

            if (target != null && Misc.ActiveKeyBind("Keys.HarassT"))
            {
                Harass(target);
            }


            switch (SorakaMenu.Orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                if (target != null)
                {
                    Combo(target);
                }
                break;

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

            case Orbwalking.OrbwalkingMode.Mixed:
                MixedModeLogic(target, true);
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                MixedModeLogic(target, false);
                break;
            }
        }