示例#1
0
        public static void KillSteal(EventArgs args)
        {
            if (Spells.Q.IsReady() && Config.MiscMenu.Checked("Qks"))
            {
                var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                                                         t.IsValidTarget() &&
                                                                                         Spells.Q.IsInRange(t) &&
                                                                                         t.Health <= Damages.QDamage(t)), DamageType.Magical);

                if (target != null)
                {
                    var pred = Spells.Q.GetPrediction(target);
                    if (ObjManager.CountAzirSoldier == 0 && Spells.W.IsReady() && Config.MiscMenu.Checked("Wks"))
                    {
                        SpecialVector.WhereCastW(target, 1);
                    }
                    if (ObjManager.CountAzirSoldier > 0)
                    {
                        Spells.Q.Cast(pred.UnitPosition);
                    }
                }
            }
            if (Spells.W.IsReady() && Config.MiscMenu.Checked("Wks"))
            {
                var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                                                         t.IsValidTarget() &&
                                                                                         Spells.W.IsInRange(t) &&
                                                                                         t.Health <= Damages.WDamage(t)), DamageType.Magical);

                if (target != null)
                {
                    SpecialVector.WhereCastW(target, 1);
                    Orbwalker.OrbwalkTo(Game.CursorPos);
                }
            }
            if (Spells.E.IsReady() && Config.MiscMenu.Checked("Eks"))
            {
                var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                                                         t.IsValidTarget() &&
                                                                                         Spells.E.IsInRange(t) &&
                                                                                         t.Health <= Damages.EDamage(t)), DamageType.Magical);

                if (target != null && ObjManager.CountAzirSoldier > 0)
                {
                    foreach (var soldier in Orbwalker.AzirSoldiers)
                    {
                        if (SpecialVector.Between(target, soldier.Position))
                        {
                            Spells.E.Cast(soldier);
                        }
                    }
                }
            }
            if (Spells.R.IsReady() && Config.MiscMenu.Checked("Rks"))
            {
                var target = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(t => t != null &&
                                                                                         t.IsValidTarget() &&
                                                                                         Spells.R.IsInRange(t) &&
                                                                                         t.Health <= Damages.RDamage(t)), DamageType.Magical);

                if (target != null)
                {
                    Spells.R.Cast(target);
                }
            }
        }
示例#2
0
 public static void Combo()
 {
     if (Config.ComboMenu.Checked("W") &&
         Spells.W.IsReady())
     {
         var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
         if (target != null)
         {
             SpecialVector.WhereCastW(target, Config.ComboMenu.GetValue("Wunit"));
         }
     }
     if (ObjManager.CountAzirSoldier != 0 && Config.ComboMenu.Checked("Q") && Spells.Q.IsReady())
     {
         var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
         if (target != null)
         {
             SpecialVector.WhereCastQ(target, Config.ComboMenu.GetValue("Qbonus"));
         }
     }
     if (Config.ComboMenu.Checked("E") && Spells.E.IsReady())
     {
         var target   = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical);
         var priority = TargetSelector.GetPriority(target);
         if (target != null && !target.IsUnderHisturret() && Config.ComboMenu.Checked(target.ChampionName))
         {
             if (priority >= 4 &&
                 target.IsValidTarget() &&
                 !Extension.Unkillable(target) &&
                 !Extension.HasSpellShield(target))
             {
                 if (target.CountEnemiesInRange(1300) <= Config.ComboMenu["Edanger"].Cast <Slider>().CurrentValue)
                 {
                     if (target.Health <= (Damages.Damagefromspell
                                               (target,
                                               Spells.Q.IsReady(),
                                               Spells.W.IsReady() || target.Distance(ObjManager.Soldier_Nearest_Enemy) > 375,
                                               Spells.E.IsReady(),
                                               Spells.R.IsReady()))
                         + Damages.WDamage(target) * 4)
                     {
                         foreach (var soldier in Orbwalker.AzirSoldiers)
                         {
                             if (SpecialVector.Between(target, soldier.Position))
                             {
                                 Spells.E.Cast(soldier);
                             }
                         }
                     }
                 }
             }
             if (priority < 3 &&
                 target.IsValidTarget() &&
                 !Extension.Unkillable(target) &&
                 !Extension.HasSpellShield(target))
             {
                 if (target.CountEnemiesInRange(1300) <= Config.ComboMenu["Edanger"].Cast <Slider>().CurrentValue + 1)
                 {
                     if (target.Health <= (Damages.Damagefromspell
                                               (target,
                                               Spells.Q.IsReady(),
                                               Spells.W.IsReady() || target.Distance(ObjManager.Soldier_Nearest_Enemy) > 375,
                                               Spells.E.IsReady(),
                                               Spells.R.IsReady()))
                         + Damages.WDamage(target) * 2)
                     {
                         foreach (var soldier in Orbwalker.AzirSoldiers)
                         {
                             if (SpecialVector.Between(target, soldier.Position))
                             {
                                 Spells.E.Cast(soldier);
                             }
                         }
                     }
                 }
             }
         }
     }
     if (Config.ComboMenu.Checked("R") && Spells.R.IsReady())
     {
         var target = TargetSelector.GetTarget(Spells.R.Range - 20, DamageType.Magical);
         if (target != null && Player.Instance.CountEnemiesInRange(Spells.R.Range) >= Config.ComboMenu.GetValue("Rhit") && target.IsValidTarget() && target.HealthPercent <= 70 && Spells.Q.IsReady())
         {
             SpecialVector.WhereCastR(target, SpecialVector.I_want.All);
         }
     }
     if (ObjManager.Soldier_Nearest_Enemy != Vector3.Zero)
     {
         var target = TargetSelector.SelectedTarget != null &&
                      TargetSelector.SelectedTarget.Distance(ObjManager.Soldier_Nearest_Enemy) < 500
                 ? TargetSelector.SelectedTarget
                 : TargetSelector.GetTarget(425, DamageType.Magical, ObjManager.Soldier_Nearest_Enemy);
         if (target.IsValid())
         {
             SpecialVector.AttackOtherObject();
         }
     }
     //if (ObjManager.All_Basic_Is_Ready)
     //{
     //    var target = TargetSelector.GetTarget(1000, DamageType.Magical);
     //    if (target != null && target.IsValid && target.HealthPercent <= 15
     //        && !target.IsUnderHisturret() && target.CountEnemiesInRange(875) <= 1
     //        && Config.ComboMenu.Checked(target.ChampionName)
     //        && Config.ComboMenu.Checked("Q")
     //        && Config.ComboMenu.Checked("W")
     //        && Config.ComboMenu.Checked("E"))
     //    {
     //        var time = (Player.Instance.Distance(target) / Spells.E.Speed) * (750 - Game.Ping);
     //        var pred = Prediction.Position.PredictUnitPosition(target, (int)time).To3D();
     //        Flee(pred);
     //    }
     //}
 }