public static void Combo(EventArgs args)
        {
            if (Orbwalker.ActiveMode != OrbwalkerMode.Combo || ObjectManager.Player.IsDead)
            {
                return;
            }

            var target = TargetSelector.GetTarget(1000);

            if (target == null)
            {
                return;
            }

            if (LogicR.IRELIA_RCOMBO() && MenuSettings.RSettings.Rcombo.Enabled)
            {
                return;
            }
            else
            {
                if (MenuSettings.ESettings.Ecombo.Enabled)
                {
                    LogicE.EPrediction(true);
                }

                if (MenuSettings.QSettings.Qcombo.Enabled)
                {
                    LogicQ.GapCloserTargetCanKillable();

                    switch (MenuSettings.QSettings.QListComboMode.Index)
                    {
                    case 1:
                        LogicQ.NewHighLogic(target);
                        break;

                    case 2:
                        LogicQ.NewHighLogic(target);
                        break;

                    case 3:
                        LogicQ.NewExtreamLogic(target);
                        break;

                    case 0:
                        LogicQ.QGapCloserPos(target.Position);
                        break;
                    }
                }
            }
        }
Esempio n. 2
0
        public static void Game_OnUpdate(EventArgs args)
        {
            if (MenuSettings.KeysSettings.FleeKey.Active)
            {
                #region New E pred
                LogicE.EPrediction(false);
                #endregion
                LogicQ.QGapCloserPos(Game.CursorPos);
                return;
            }
            if (MenuSettings.KeysSettings.SemiE.Active && Irelia.E.IsReady())
            {
                #region New E pred
                LogicE.EPrediction(false);
                return;

                #endregion
            }
            if (MenuSettings.KeysSettings.SemiR.Active && Irelia.R.IsReady())
            {
                #region R
                try
                {
                    var     targets = TargetSelector.GetTargets(900);
                    Vector3 Rpos    = Vector3.Zero;

                    if (targets != null)
                    {
                        foreach (var Rprediction in targets.Select(i => Irelia.R.GetPrediction(i)).Where(i => i.Hitchance >= EnsoulSharp.SDK.HitChance.High || (i.Hitchance >= EnsoulSharp.SDK.HitChance.Medium && i.AoeTargetsHitCount > 1)).OrderByDescending(i => i.AoeTargetsHitCount))
                        {
                            Rpos = Rprediction.CastPosition;
                        }
                        if (Rpos != Vector3.Zero)
                        {
                            Irelia.R.Cast(Rpos);
                            return;
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine("R.cast Error" + ex);
                }
                #endregion
            }
        }