Beispiel #1
0
 public static void KillSteal()
 {
     foreach (var enemy in EntityManager.Heroes.Enemies.Where(a => !a.IsDead && !a.IsZombie && a.Health > 0))
     {
         if (enemy.IsValidTarget(R.Range) && enemy.HealthPercent <= 40)
         {
             if (DamageLib.QCalc(enemy) >= enemy.Health)
             {
                 if (Q.IsReady() && Q.IsInRange(enemy) && Program.ModesMenu1["KQ"].Cast <CheckBox>().CurrentValue)
                 {
                     E.Cast(enemy);
                 }
             }
         }
     }
 }
Beispiel #2
0
        public static void LastHit()
        {
            var useQ     = Program.ModesMenu2["LastQ"].Cast <CheckBox>().CurrentValue;
            var qminions = EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(m => m.IsValidTarget((Program.W.Range)) && (DamageLib.QCalc(m) > m.Health));

            if (qminions == null)
            {
                return;
            }
            if ((Program._Player.ManaPercent <= Program.ModesMenu2["ManaL"].Cast <Slider>().CurrentValue))
            {
                return;
            }

            if (Q.IsReady() && (Program._Player.Distance(qminions) <= Program._Player.GetAutoAttackRange()) && useQ && qminions.Health < DamageLib.QCalc(qminions))
            {
                Q.Cast();
            }
        }