示例#1
0
        public static void Harass()
        {
            if (Player.Instance.ManaPercent <= Menus.HarassMana.CurrentValue || !More.CanCast())
            {
                return;
            }

            if (Menus.Combo["Qh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                var prediction = Spells.Q.GetPrediction(target);
                if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit() &&
                    ((target.HasBuff("malzahare") && Game.Time * 1000f >= More.CastedE) ||
                     (!target.HasBuff("malzahare") && !target.IsInRange(Player.Instance, Spells.E.Range))))
                {
                    Spells.Q.Cast(prediction.CastPosition);
                }
            }

            if (Menus.Combo["Wh"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() &&
                (!Menus.Combo["Eh"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))
            {
                var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Mixed);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                More.CastW(target);
            }

            if (Menus.Combo["Eh"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.E.Range))
                {
                    Spells.E.Cast(target);
                }
            }
        }
示例#2
0
        public static void JungleClear()
        {
            if (Player.Instance.ManaPercent <= Menus.JungleMana.CurrentValue || !More.CanCast())
            {
                return;
            }

            if (Menus.Clear["Qjc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() &&
                (!Menus.Clear["Wjc"].Cast <CheckBox>().CurrentValue || !Spells.W.IsReady()) &&
                (!Menus.Clear["Ejc"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))
            {
                var monster = EntityManager.MinionsAndMonsters.Monsters
                              .Where(m => m.IsValidTarget(Spells.Q.Range) && m.HasBuff("malzahare"))
                              .OrderBy(m => m.MaxHealth).LastOrDefault();
                if (monster == null || Game.Time * 1000 < More.CastedE)
                {
                    return;
                }
                Spells.Q.Cast(monster);
            }

            if (Menus.Clear["Wjc"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() &&
                (!Menus.Clear["Ejc"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))
            {
                var monster = EntityManager.MinionsAndMonsters.Monsters
                              .Where(m => m.IsValidTarget(Spells.E.Range) && m.HasBuff("malzahare"))
                              .OrderBy(m => m.MaxHealth).LastOrDefault();
                if (monster == null)
                {
                    return;
                }
                More.CastW(monster);
            }

            if (Menus.Clear["Ejc"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady())
            {
                var monster = EntityManager.MinionsAndMonsters.Monsters
                              .Where(m => m.IsValidTarget(Spells.E.Range) && !m.HasBuff("malzahare"))
                              .OrderBy(m => m.MaxHealth).LastOrDefault();
                if (monster == null)
                {
                    return;
                }
                Spells.E.Cast(monster);
            }
        }
示例#3
0
        public static void LaneClear()
        {
            if (Player.Instance.ManaPercent <= Menus.LaneMana.CurrentValue || !More.CanCast())
            {
                return;
            }

            if (Menus.Clear["Qlc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                var minions = EntityManager.MinionsAndMonsters.EnemyMinions
                              .Where(m => m.IsValidTarget(Spells.Q.Range));
                var prediction = Spells.Q.GetBestCircularCastPosition(minions);
                if (prediction.HitNumber >= 3)
                {
                    Spells.Q.Cast(prediction.CastPosition);
                }
            }

            if (Menus.Clear["Wlc"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() &&
                (!Menus.Clear["Elc"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))
            {
                var minion = EntityManager.MinionsAndMonsters.EnemyMinions
                             .Where(m => m.IsValidTarget(Spells.E.Range) && m.HasBuff("malzahare"))
                             .OrderBy(m => m.Health).FirstOrDefault();
                if (minion == null)
                {
                    return;
                }
                More.CastW(minion);
            }

            if (Menus.Clear["Elc"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady())
            {
                var minion = EntityManager.MinionsAndMonsters.EnemyMinions
                             .Where(m => m.IsValidTarget(Spells.E.Range) && !m.HasBuff("malzahare"))
                             .OrderBy(m => m.Health).FirstOrDefault();
                if (minion == null)
                {
                    return;
                }
                Spells.E.Cast(minion);
            }
        }
示例#4
0
        public static void Combo()
        {
            if (!More.CanCast())
            {
                return;
            }

            if (Menus.Combo["Qc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                var prediction = Spells.Q.GetPrediction(target);
                if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit() &&
                    (!target.IsInRange(Player.Instance, Spells.E.Range) ||
                     ((!Menus.Combo["Wc"].Cast <CheckBox>().CurrentValue || !Spells.W.IsReady()) &&
                      (!Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))))
                {
                    Spells.Q.Cast(prediction.CastPosition);
                }
            }

            if (Menus.Combo["Wc"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady() &&
                (!Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))
            {
                var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Mixed);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                More.CastW(target);
            }

            if (Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.E.Range))
                {
                    Spells.E.Cast(target);
                }
            }

            if (Menus.Combo["Rc"].Cast <CheckBox>().CurrentValue&& Spells.R.IsReady() &&
                (!Menus.Combo["Qc"].Cast <CheckBox>().CurrentValue || !Spells.Q.IsReady()) &&
                (!Menus.Combo["Wc"].Cast <CheckBox>().CurrentValue || !Spells.W.IsReady()) &&
                (!Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue || !Spells.E.IsReady()))
            {
                var target = TargetSelector.GetTarget(Spells.R.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.R.Range))
                {
                    Spells.R.Cast(target);
                }
            }
        }