예제 #1
0
        public static void Flee()
        {
            var unit = DashingManager.GetClosestEUnit(Game.CursorPos);

            if (Yasuo.FleeMenu["Flee.E"].Cast <CheckBox>().CurrentValue&& unit != null && unit.GetDashPos().Distance(Game.CursorPos) < Player.Instance.Distance(Game.CursorPos))
            {
                SpellManager.E.Cast(unit);
                return;
            }
            if (Yasuo.FleeMenu["Flee.stack"].Cast <CheckBox>().CurrentValue&& Player.Instance.HasWhirlwind() && !Player.Instance.IsDashing())
            {
                var target =
                    EntityManager.Heroes.Enemies.Where(a => a.IsValidTarget(SpellManager.Q.Range) && a.Health > 0 && !a.IsDead)
                    .OrderBy(a => a.Distance(Player.Instance))
                    .FirstOrDefault();
                if (target == null)
                {
                    return;
                }
                SpellManager.Q.Cast(target);
                return;
            }
            if (Yasuo.FleeMenu["Flee.stack"].Cast <CheckBox>().CurrentValue)
            {
                SpellManager.StackQ();
            }
        }
예제 #2
0
        public static void StackQ()
        {
            if (!Q.IsReady() || Player.Instance.HasWhirlwind())
            {
                return;
            }
            var targets = EntityManager.Heroes.Enemies.Where(a => a.Distance(Player.Instance.Position) < 475 && !a.IsDead && a.Health > 0).Select(a => a as Obj_AI_Base);

            foreach (var target in targets.ToList())
            {
                if (target == null)
                {
                    continue;
                }
                if (!Player.Instance.IsDashing())
                {
                    Q.Cast(target);
                    break;
                }
                if (!(DashingManager.GetPlayerPosition(300)
                      .Distance(Prediction.Position.PredictUnitPosition(target, 300)) < 400))
                {
                    continue;
                }
                Player.CastSpell(SpellSlot.Q);
                break;
            }
            targets = EntityManager.MinionsAndMonsters.CombinedAttackable.Where(a => a.Distance(Player.Instance.Position) <= 475 && !a.IsDead && a.Health > 0).Select(a => a as Obj_AI_Base);
            foreach (var target in targets.ToList())
            {
                if (target != null)
                {
                    if (!Player.Instance.IsDashing())
                    {
                        Q.Cast(target);
                        break;
                    }
                    if (
                        DashingManager.GetPlayerPosition(300).Distance(Prediction.Position.PredictUnitPosition(target, 300)) < 400)
                    {
                        Player.CastSpell(SpellSlot.Q);
                        break;
                    }
                }
            }
        }
예제 #3
0
        public static void Harass()
        {
            var target = TargetSelector.SeletedEnabled && TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.IsValidTarget(1375)
                    ? TargetSelector.SelectedTarget
                    : TargetSelector.GetTarget(SpellManager.Q.Range + 475 + 100, DamageType.Physical);

            if (target == null)
            {
                return;
            }
            if (target.IsValidTarget(SpellManager.Q.Range) && Yasuo.HarassMenu["harass.Q"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDashing())
                {
                    var pos = DashingManager.GetPlayerPosition(300);
                    if (SpellManager.Q.IsReady() && (target.Distance(pos) < 400))
                    {
                        Player.CastSpell(SpellSlot.Q);
                    }
                }
                else if (SpellManager.Q.IsReady())
                {
                    SpellManager.Q.Cast(target);
                    return;
                }
            }

            var unit = target.GetClosestEUnit();

            if (Yasuo.HarassMenu["harass.E"].Cast <CheckBox>().CurrentValue&& unit != null && unit.GetDashPos().Distance(target) < Player.Instance.Distance(target) && (!unit.GetDashPos().IsUnderTower() || TargetSelector.SelectedTarget == target))
            {
                SpellManager.E.Cast(unit);
            }
            if (Player.Instance.HasWhirlwind())
            {
                return;
            }
            if (Yasuo.HarassMenu["harass.stack"].Cast <CheckBox>().CurrentValue)
            {
                SpellManager.StackQ();
            }
        }
예제 #4
0
        public static void WaveClear()
        {
            ForcedMinion = null;
            var minion = EntityManager.MinionsAndMonsters.GetLaneMinions().Where(a => a.Distance(Player.Instance) < SpellManager.Q.Range).OrderBy(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.LaneClear["WC.Q"].Cast <CheckBox>().CurrentValue&& Player.Instance.IsDashing())
            {
                var pos = DashingManager.GetPlayerPosition(300);
                if (SpellManager.Q.IsReady() && (minion.Distance(pos) < 475 &&
                                                 DamageHandler.QDamage(minion) > minion.Health) || EntityManager.MinionsAndMonsters.GetLaneMinions().Count(a => a.Distance(pos) < 475) > 1)
                {
                    Player.CastSpell(SpellSlot.Q);
                }
            }
            if (Yasuo.LaneClear["WC.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && (!minion.GetDashPos().IsUnderTower() || Yasuo.LaneClear["WC.EUnderTower"].Cast <CheckBox>().CurrentValue))
            {
                if (DamageHandler.EDamage(minion) > minion.Health)
                {
                    SpellManager.E.Cast(minion);
                    return;
                }
                if (DamageHandler.EDamage(minion) + Player.Instance.GetAutoAttackDamage(minion) > minion.Health)
                {
                    Orbwalker.ForcedTarget = minion;
                    ForcedMinion           = minion;
                }
            }
            if (Yasuo.LaneClear["WC.Q"].Cast <CheckBox>().CurrentValue&& SpellManager.Q.IsReady() && DamageHandler.QDamage(minion) > minion.Health)
            {
                SpellManager.Q.Cast(minion);
                return;
            }
            if (Yasuo.LaneClear["WC.Q"].Cast <CheckBox>().CurrentValue&& Yasuo.LaneClear["WC.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && SpellManager.Q.IsReady() && DamageHandler.EDamage(minion) + DamageHandler.QDamage(minion) > minion.Health && !minion.GetDashPos().IsUnderTower())
            {
                SpellManager.Q.Cast(minion);
                return;
            }
        }
예제 #5
0
        public static void Combo()
        {
            var target = TargetSelector.SeletedEnabled && Yasuo.ComboMenu["combo.leftclickRape"].Cast <CheckBox>().CurrentValue&& TargetSelector.SelectedTarget != null && TargetSelector.SelectedTarget.IsValidTarget(1375)
                    ? TargetSelector.SelectedTarget
                    : TargetSelector.GetTarget(SpellManager.Q.Range + 475 + 100, DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (SpellManager.R.IsReady() && SpellManager.GetLowestKnockupTime() <= 250 + Game.Ping &&
                Yasuo.ComboMenu["combo.R"].Cast <CheckBox>().CurrentValue&&
                (Yasuo.ComboMenu["combo.RTarget"].Cast <CheckBox>().CurrentValue&& target.IsKnockedUp() && TargetSelector.SelectedTarget == target ||
                 Yasuo.ComboMenu["combo.RKillable"].Cast <CheckBox>().CurrentValue&& target.Health <= DamageHandler.RDamage(target) && target.Health > DamageHandler.QDamage(target) ||
                 SpellManager.GetKnockedUpTargets() >= Yasuo.ComboMenu["combo.MinTargetsR"].Cast <Slider>().CurrentValue))
            {
                SpellManager.R.Cast();
            }

            if (target.IsValidTarget(SpellManager.Q.Range) && Yasuo.ComboMenu["combo.Q"].Cast <CheckBox>().CurrentValue)
            {
                if (Player.Instance.IsDashing())
                {
                    var pos = DashingManager.GetPlayerPosition(300);
                    if (SpellManager.Q.IsReady() && (target.Distance(pos) < 400))
                    {
                        Player.CastSpell(SpellSlot.Q);
                    }
                }
                else if (SpellManager.Q.IsReady())
                {
                    SpellManager.Q.Cast(target);
                    return;
                }
            }

            if (Yasuo.ComboMenu["combo.E"].Cast <CheckBox>().CurrentValue&& target.GetDashPos().Distance(target) < 400 && target.CanDash() && target.Distance(Player.Instance) > Player.Instance.GetAutoAttackRange(target))
            {
                SpellManager.E.Cast(target);
            }

            if (Yasuo.ComboMenu["combo.E"].Cast <CheckBox>().CurrentValue&& target.Distance(Player.Instance) > Player.Instance.GetAutoAttackRange(target) && !Player.Instance.IsDashing())
            {
                foreach (var unit in EntityManager.MinionsAndMonsters.CombinedAttackable)
                {
                    if (!(unit.GetDashPos().Distance(target) < Player.Instance.Distance(target)) || (unit.GetDashPos().IsUnderTower() && TargetSelector.SelectedTarget != target))
                    {
                        continue;
                    }
                    SpellManager.E.Cast(unit);
                    return;
                }
                foreach (var unit in EntityManager.Heroes.Enemies)
                {
                    if (!(unit.GetDashPos().Distance(target) < Player.Instance.Distance(target)) || (unit.GetDashPos().IsUnderTower() && TargetSelector.SelectedTarget != target))
                    {
                        continue;
                    }
                    SpellManager.E.Cast(unit);
                    return;
                }
            }

            if (Player.Instance.HasWhirlwind())
            {
                return;
            }

            if (Yasuo.ComboMenu["combo.stack"].Cast <CheckBox>().CurrentValue)
            {
                SpellManager.StackQ();
            }
        }