public void Combo()
        {
            if (doingEQCombo)
            {
                if (ObjectManager.Player.IsDashing() &&
                    SteelTempest.Q.IsReady() && SteelTempest.Empowered &&
                    ObjectManager.Player.CountEnemyChampionsInRange(250) > 0)
                {
                    SteelTempest.QDash.Cast();
                    doingEQCombo = false;
                }
                if (doingEQCombo)
                {
                    return;
                }
            }
            var comboTarget = TargetSelector.GetTarget(LastBreath.R.Range, DamageType.Physical);

            if (comboTarget != null && comboTarget.IsValid)
            {
                if (YasuoUtils.DecideKnockup(comboTarget))
                {
                    var bestUnit = YasuoUtils.BestQDashKnockupUnit();
                    if (bestUnit != null)
                    {
                        doingEQCombo = true;
                        SweepingBlade.E.Cast(bestUnit);
                        Core.DelayAction(() => { doingEQCombo = false; }, 100);
                    }
                }
                else
                {
                    SweepingBlade.GapClose(comboTarget);
                }
            }
            else
            {
                SweepingBlade.GapClose();
                return;
            }

            var targetDistance = comboTarget.Distance(ObjectManager.Player, true);

            if (Config.comboMenu["ylm.combo.useq"].Cast <CheckBox>().CurrentValue&& SteelTempest.Q.IsReady() &&
                targetDistance <= SteelTempest.Q.RangeSquared)
            {
                SteelTempest.Q.Cast(comboTarget);
            }

            if (Config.comboMenu["ylm.combo.useq3"].Cast <CheckBox>().CurrentValue&& SteelTempest.Empowered && SteelTempest.Q.IsReady() &&
                targetDistance <= SteelTempest.QEmp.RangeSquared)
            {
                SteelTempest.QEmp.Cast(comboTarget);
            }
            if (Config.comboMenu["ylm.combo.user"].Cast <CheckBox>().CurrentValue&& LastBreath.ShouldUlt(comboTarget))
            {
                LastBreath.CastR(comboTarget);
            }
            //TODO: Items
        }
Exemple #2
0
        public void Combo()
        {
            if (doingEQCombo)
            {
                if (ObjectManager.Player.IsDashing() &&
                    SteelTempest.Q.IsReady() && SteelTempest.Empowered &&
                    ObjectManager.Player.CountEnemiesInRange(250) > 0)
                {
                    SteelTempest.QDash.Cast();
                    doingEQCombo = false;
                }
                if (doingEQCombo)
                {
                    return;
                }
            }
            var comboTarget = TargetSelector.GetTarget(LastBreath.R.Range, TargetSelector.DamageType.Physical);

            if (comboTarget != null && comboTarget.IsValid)
            {
                if (YasuoUtils.DecideKnockup(comboTarget))
                {
                    var bestUnit = YasuoUtils.BestQDashKnockupUnit();
                    if (bestUnit != null)
                    {
                        doingEQCombo = true;
                        SweepingBlade.E.Cast(bestUnit);
                        LeagueSharp.Common.Utility.DelayAction.Add(100, () => { doingEQCombo = false; });
                    }
                }
                else
                {
                    SweepingBlade.GapClose(comboTarget);
                }
            }
            else
            {
                SweepingBlade.GapClose();
                return;
            }

            var targetDistance = comboTarget.Distance(ObjectManager.Player, true);

            if (Config.Param <bool>("ylm.combo.useq") && SteelTempest.Q.IsReady() &&
                targetDistance <= SteelTempest.Q.RangeSqr)
            {
                SteelTempest.Q.Cast(comboTarget);
            }

            if (Config.Param <bool>("ylm.combo.useq3") && SteelTempest.Empowered && SteelTempest.Q.IsReady() &&
                targetDistance <= SteelTempest.QEmp.RangeSqr)
            {
                SteelTempest.QEmp.Cast(comboTarget);
            }

            if (Config.Param <bool>("ylm.combo.user") && LastBreath.ShouldUlt(comboTarget))
            {
                LastBreath.CastR(comboTarget);
            }
            //TODO: Items
        }