示例#1
0
        static void Game_OnUpdate(EventArgs args)
        {
            if (Player.IsDead)
            {
                return;
            }

            if (Player.ManaPercent >= 40)
            {
                W2.Shield();
            }
            if (Orbwalking.CanMove(35))
            {
                AIO_Func.SC(Q);
                AIO_Func.Heal(W);
                if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Flee && AIO_Menu.Champion.Flee.UseE && Player.ManaPercent > AIO_Menu.Champion.Flee.IfMana && E.IsReady())
                {
                    E.Cast();
                }

                if (AIO_Func.EnemyCount(R.Range - 10) >= RM && R.IsReady() && AIO_Menu.Champion.Combo.UseR)
                {
                    foreach (var target in HeroManager.Enemies.OrderByDescending(x => x.Health))
                    {
                        if (R.CanCast(target))
                        {
                            R.CastIfWillHit(target, RM);
                        }
                    }
                }
                if (AIO_Func.EnemyCount(600) == 0 && AIO_Func.EnemyCount(1500) >= 1 && E.IsReady() && AIO_Menu.Champion.Combo.UseE && Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
                {
                    E.Cast();
                }
            }

            #region Killsteal
            if (AIO_Menu.Champion.Misc.getBoolValue("KillstealQ"))
            {
                KillstealQ();
            }
            if (AIO_Menu.Champion.Misc.getBoolValue("KillstealR"))
            {
                KillstealR();
            }
            #endregion
        }