コード例 #1
0
        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
        }
コード例 #2
0
        public void Escape()
        {
            var escapeTarget = YasuoUtils.ClosestMinion(Game.CursorPos);

            if (escapeTarget != null)
            {
                SweepingBlade.GapClose(escapeTarget, true);
            }
            if (SteelTempest.Empowered && SteelTempest.Q.IsReady() && !ObjectManager.Player.IsDashing())
            {
                var q3Target = TargetSelector.GetTarget(SteelTempest.QEmp.Range, DamageType.Physical);
                if (q3Target != null)
                {
                    SteelTempest.QEmp.Cast(q3Target);
                }
            }
        }