예제 #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);
         }
     }
 }
예제 #2
0
파일: Combo.cs 프로젝트: Real263/EloBuddy
        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);
                }
            }
        }