Esempio n. 1
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.FarmMenu["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.FarmMenu["WC.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && (!minion.GetDashPos().IsUnderTower() || Yasuo.FarmMenu["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.FarmMenu["WC.Q"].Cast <CheckBox>().CurrentValue&& SpellManager.Q.IsReady() && DamageHandler.QDamage(minion) > minion.Health)
            {
                SpellManager.Q.Cast(minion);
                return;
            }
            if (Yasuo.FarmMenu["WC.Q"].Cast <CheckBox>().CurrentValue&& Yasuo.FarmMenu["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;
            }
        }
Esempio n. 2
0
        public static void Jungle()
        {
            var minion = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(a => a.Distance(Player.Instance) < SpellManager.Q.Range).OrderByDescending(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.FarmMenu["JNG.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && DamageHandler.EDamage(minion) > minion.Health && !minion.GetDashPos().IsUnderTower())
            {
                SpellManager.E.Cast(minion);
                return;
            }
            if (Yasuo.FarmMenu["JNG.Q"].Cast <CheckBox>().CurrentValue&& SpellManager.Q.IsReady())
            {
                SpellManager.Q.Cast(minion);
            }
        }
Esempio n. 3
0
 public static void KillSteal()
 {
     foreach (var enemy in EntityManager.Heroes.Enemies.Where(hero => hero.IsValidTarget(SpellManager.Q.Range) && !hero.IsDead && !hero.IsZombie))
     {
         if (Yasuo.MiscSettings["KS.Q"].Cast <CheckBox>().CurrentValue&& SpellManager.Q.IsReady() && SpellManager.Q.IsInRange(enemy) && DamageHandler.QDamage(enemy) > enemy.Health)
         {
             SpellManager.Q.Cast(enemy);
         }
         if (Yasuo.MiscSettings["KS.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && SpellManager.E.IsInRange(enemy) && enemy.CanDash() && DamageHandler.EDamage(enemy) > enemy.Health)
         {
             SpellManager.E.Cast(enemy);
         }
     }
 }
Esempio n. 4
0
        public static void LastHit()
        {
            var minion = EntityManager.MinionsAndMonsters.GetLaneMinions().Where(a => a.Distance(Player.Instance) < 475).OrderBy(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.FarmMenu["LH.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && DamageHandler.EDamage(minion) > minion.Health && (!minion.GetDashPos().IsUnderTower() || Yasuo.FarmMenu["LH.EUnderTower"].Cast <CheckBox>().CurrentValue))
            {
                SpellManager.E.Cast(minion);
                return;
            }
            if (Yasuo.FarmMenu["LH.Q"].Cast <CheckBox>().CurrentValue&& SpellManager.Q.IsReady() && DamageHandler.QDamage(minion) > minion.Health)
            {
                SpellManager.Q.Cast(minion);
            }
        }
Esempio n. 5
0
        public static void LastHit()
        {
            var minion = EntityManager.MinionsAndMonsters.GetLaneMinions().Where(a => a.Distance(Player.Instance) < 475).OrderBy(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.FarmMenu["LH.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.FarmMenu["LH.E"].Cast <CheckBox>().CurrentValue&& SpellManager.E.IsReady() && DamageHandler.EDamage(minion) > minion.Health && !minion.GetDashPos().IsUnderTower())
            {
                SpellManager.E.Cast(minion);
                return;
            }
            if (Yasuo.FarmMenu["LH.Q"].Cast <CheckBox>().CurrentValue&& SpellManager.Q.IsReady() && DamageHandler.QDamage(minion) > minion.Health)
            {
                SpellManager.Q.Cast(minion);
            }
        }