예제 #1
0
        public static void LineClearn()
        {
            ForcedMinion = null;
            var minion = EntityManager.MinionsAndMonsters.GetLaneMinions().Where(a => a.Distance(Player.Instance) < SpellDataBase.Q.Range).OrderBy(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.Clean["WCQ"].Cast <CheckBox>().CurrentValue&& SpellDataBase.Q.IsReady())
            {
                SpellDataBase.Q.Cast(minion);
                return;
            }
            if (Yasuo.Clean["WCQ"].Cast <CheckBox>().CurrentValue&& Yasuo.Clean["WC.E"].Cast <CheckBox>().CurrentValue&& SpellDataBase.E.IsReady() && SpellDataBase.Q.IsReady() && DamageInfo.EDamage(minion) + DamageInfo.QDamage(minion) > minion.Health && !minion.GetDashPos().IsUnderTower())
            {
                SpellDataBase.Q.Cast(minion);
                return;
            }
            if (Yasuo.Clean["WCE"].Cast <CheckBox>().CurrentValue&& SpellDataBase.E.IsReady() && (!minion.GetDashPos().IsUnderTower() || Yasuo.Clean["LaseEUT"].Cast <CheckBox>().CurrentValue))
            {
                if (DamageInfo.EDamage(minion) > minion.Health)
                {
                    SpellDataBase.E.Cast(minion);
                    return;
                }
                if (DamageInfo.EDamage(minion) + Player.Instance.GetAutoAttackDamage(minion) > minion.Health)
                {
                    Orbwalker.ForcedTarget = minion;
                    ForcedMinion           = minion;
                }
            }
        }
예제 #2
0
        public static void WaveClear()
        {
            ForcedMinion = null;
            var minion = EntityManager.MinionsAndMonsters.GetLaneMinions().Where(a => a.Distance(Player.Instance) < SpellDataBase.Q.Range).OrderBy(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.Clean["WC.Q"].Cast <CheckBox>().CurrentValue&& Player.Instance.IsDashing())
            {
                var pos = ForDash.GetPlayerPosition(300);
                if (SpellDataBase.Q.IsReady() && (minion.Distance(pos) < 475 &&
                                                  DamageInfo.QDamage(minion) > minion.Health) || EntityManager.MinionsAndMonsters.GetLaneMinions().Count(a => a.Distance(pos) < 475) > 1)
                {
                    Player.CastSpell(SpellSlot.Q);
                }
            }
            if (Yasuo.Clean["WC.E"].Cast <CheckBox>().CurrentValue&& SpellDataBase.E.IsReady() && (!minion.GetDashPos().IsUnderTower() || Yasuo.Clean["LaseEUT"].Cast <CheckBox>().CurrentValue))
            {
                if (DamageInfo.EDamage(minion) > minion.Health)
                {
                    SpellDataBase.E.Cast(minion);
                    return;
                }
                if (DamageInfo.EDamage(minion) + Player.Instance.GetAutoAttackDamage(minion) > minion.Health)
                {
                    Orbwalker.ForcedTarget = minion;
                    ForcedMinion           = minion;
                }
            }
            if (Yasuo.Clean["WC.Q"].Cast <CheckBox>().CurrentValue&& SpellDataBase.Q.IsReady() && DamageInfo.QDamage(minion) > minion.Health)
            {
                SpellDataBase.Q.Cast(minion);
                return;
            }
            if (Yasuo.Clean["WC.Q"].Cast <CheckBox>().CurrentValue&& Yasuo.Clean["WC.E"].Cast <CheckBox>().CurrentValue&& SpellDataBase.E.IsReady() && SpellDataBase.Q.IsReady() && DamageInfo.EDamage(minion) + DamageInfo.QDamage(minion) > minion.Health && !minion.GetDashPos().IsUnderTower())
            {
                SpellDataBase.Q.Cast(minion);
                return;
            }
        }
예제 #3
0
        public static void Jungle()
        {
            var minion = EntityManager.MinionsAndMonsters.GetJungleMonsters().Where(a => a.Distance(Player.Instance) < SpellDataBase.Q.Range).OrderByDescending(a => a.Health).FirstOrDefault();

            if (minion == null)
            {
                return;
            }
            if (Yasuo.Clean["JungE"].Cast <CheckBox>().CurrentValue&& SpellDataBase.E.IsReady() && DamageInfo.EDamage(minion) > minion.Health && !minion.GetDashPos().IsUnderTower())
            {
                SpellDataBase.E.Cast(minion);
                return;
            }
            if (Yasuo.Clean["JungQ"].Cast <CheckBox>().CurrentValue&& SpellDataBase.Q.IsReady())
            {
                SpellDataBase.Q.Cast(minion);
            }
        }
예제 #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.Clean["LastE"].Cast <CheckBox>().CurrentValue&& SpellDataBase.E.IsReady() && DamageInfo.EDamage(minion) > minion.Health && (!minion.GetDashPos().IsUnderTower() || Yasuo.Clean["LaseEUT"].Cast <CheckBox>().CurrentValue))
            {
                SpellDataBase.E.Cast(minion);
                return;
            }
            if (Yasuo.Clean["WC.Q"].Cast <CheckBox>().CurrentValue&& SpellDataBase.Q.IsReady() && DamageInfo.QDamage(minion) > minion.Health)
            {
                SpellDataBase.Q.Cast(minion);
                return;
            }
        }