Beispiel #1
0
 public static void Execute()
 {
     foreach (AIHeroClient enemy in EntityManager.Heroes.Enemies.Where(m => m.IsValidTarget(TargetSelector.Range) && m.HealthPercent < 40))
     {
         var result = enemy.GetBestCombo();
         if (result.IsKillable)
         {
             if (Menu.GetCheckBoxValue("Q") && result.CanKillWith(SpellSlot.Q))
             {
                 SpellManager.CastQ(enemy);
             }
             if (Menu.GetCheckBoxValue("W") && result.CanKillWith(SpellSlot.W))
             {
                 SpellManager.CastW(enemy);
             }
             if (Menu.GetCheckBoxValue("E") && result.CanKillWith(SpellSlot.E))
             {
                 SpellManager.CastE(enemy);
             }
             if (Menu.GetCheckBoxValue("R") && result.CanKillWith(SpellSlot.R))
             {
                 SpellManager.CastR(enemy);
             }
         }
         if (Menu.GetCheckBoxValue("Ignite") && SpellManager.Ignite_IsReady && Util.MyHero.GetSummonerSpellDamage(enemy, DamageLibrary.SummonerSpells.Ignite) >= enemy.Health)
         {
             SpellManager.Ignite.Cast(enemy);
         }
     }
 }
Beispiel #2
0
        public static void Execute()
        {
            var target = TargetSelector.Target;

            if (target.IsValidTarget())
            {
                var damageI = target.GetBestCombo();
                SpellManager.CastQ(target, Menu.GetSliderValue("Q"));
                if (Menu.GetCheckBoxValue("Items"))
                {
                    ItemManager.UseOffensiveItems(target);
                }
                if (Menu.GetCheckBoxValue("R") && damageI.IsKillable && damageI.R)
                {
                    SpellManager.CastR(target);
                }
                if (Menu.GetCheckBoxValue("E") && damageI.Damage * Damage.Overkill >= target.Health)
                {
                    SpellManager.CastE(target);
                }
                if (Menu.GetCheckBoxValue("W"))
                {
                    SpellManager.CastW(target);
                }
            }
        }
Beispiel #3
0
 private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
 {
     if (MenuManager.MiscMenu.GetCheckBoxValue("Interrupter"))
     {
         SpellManager.CastE(sender);
     }
 }
Beispiel #4
0
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
 {
     if (MenuManager.MiscMenu.GetCheckBoxValue("Gapcloser"))
     {
         SpellManager.CastE(sender);
     }
 }
Beispiel #5
0
 public static void Execute()
 {
     if (SpellSlot.W.IsReady() && Menu.GetCheckBoxValue("W"))
     {
         Util.MyHero.Spellbook.CastSpell(SpellSlot.W);
     }
     if (SpellSlot.E.IsReady() && Menu.GetCheckBoxValue("E"))
     {
         var target = EntityManager.Heroes.Enemies.Where(e => e.IsValidTarget(SpellManager.E.Range)).OrderBy(d => Extensions.Distance(Util.MyHero, d, true)).FirstOrDefault();
         if (target.IsValidTarget())
         {
             SpellManager.CastE(target);
         }
     }
 }
Beispiel #6
0
 public static void Execute()
 {
     if (Util.MyHero.ManaPercent >= Menu.GetSliderValue("Mana"))
     {
         foreach (Obj_AI_Minion minion in EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Monster, EntityManager.UnitTeam.Enemy, Util.MyHero.Position, SpellManager.Q.Range, true))
         {
             if (minion.IsValidTarget() && Util.MyHero.ManaPercent >= Menu.GetSliderValue("Mana"))
             {
                 SpellManager.CastQ(minion, Menu.GetSliderValue("Q"));
                 if (Menu.GetCheckBoxValue("E"))
                 {
                     SpellManager.CastE(minion);
                 }
                 if (Menu.GetCheckBoxValue("W"))
                 {
                     SpellManager.CastW(minion);
                 }
             }
         }
     }
 }
Beispiel #7
0
 public static void Execute()
 {
     if (Menu.GetSliderValue("Mana") <= Util.MyHero.ManaPercent)
     {
         var target = TargetSelector.Target;
         if (target.IsValidTarget())
         {
             SpellManager.CastQ(target, Menu.GetSliderValue("Q"));
             var minion = EntityManager.MinionsAndMonsters.Get(EntityManager.MinionsAndMonsters.EntityType.Minion, EntityManager.UnitTeam.Enemy, Util.MyHero.Position, SpellManager.Q.Range, true).FirstOrDefault();
             if (minion != null && minion.IsValidTarget())
             {
                 SpellManager.CastQ(minion, Menu.GetSliderValue("Q"));
             }
             if (Menu.GetCheckBoxValue("E"))
             {
                 SpellManager.CastE(target);
             }
             if (Menu.GetCheckBoxValue("W"))
             {
                 SpellManager.CastW(target);
             }
             if (Menu.GetCheckBoxValue("AA"))
             {
                 if (Util.MyHero.HasBuff("dravenspinningattack"))
                 {
                     var buff = Util.MyHero.GetBuff("dravenspinningattack");
                     if (Orbwalker.CanAutoAttack)
                     {
                         if (buff.EndTime - Game.Time <= 1.25f + Util.MyHero.AttackCastDelay)
                         {
                             Obj_AI_Base  BestTarget = null;
                             AIHeroClient target2    = TargetSelector.Target;
                             if (target2 != null && target2.IsValidTarget())
                             {
                                 BestTarget = target2;
                             }
                             else
                             {
                                 Obj_AI_Minion BestMinion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget() && Util.MyHero.IsInAutoAttackRange(m) && (Prediction.Health.GetPrediction(m, 2 * 1000 * (int)(Util.MyHero.AttackDelay + Util.MyHero.AttackCastDelay + Extensions.Distance(Util.MyHero, m) / Util.MyHero.BasicAttack.MissileSpeed - 0.07f)) > 2 * Util.MyHero.GetAutoAttackDamage(m) || Prediction.Health.GetPrediction(m, 1000 * (int)(Util.MyHero.AttackCastDelay + Extensions.Distance(Util.MyHero, m) / Util.MyHero.BasicAttack.MissileSpeed - 0.07f)) == m.Health)).OrderBy(m => m.HealthPercent).LastOrDefault();
                                 if (BestMinion != null && BestMinion.IsValidTarget())
                                 {
                                     BestTarget = BestMinion;
                                 }
                                 else
                                 {
                                     BestMinion = EntityManager.MinionsAndMonsters.EnemyMinions.Where(m => m.IsValidTarget() && Util.MyHero.IsInAutoAttackRange(m)).OrderBy(m => m.HealthPercent).LastOrDefault();
                                     if (BestMinion != null && BestMinion.IsValidTarget())
                                     {
                                         BestTarget = BestMinion;
                                     }
                                 }
                             }
                             Orbwalker.ForcedTarget = BestTarget;
                         }
                         else
                         {
                             Orbwalker.ForcedTarget = null;
                         }
                     }
                 }
             }
         }
     }
 }