Ejemplo n.º 1
0
 public static void KillSteal()
 {
     foreach (var enemy in EntityManager.Heroes.Enemies.Where(a => !a.IsDead && !a.IsZombie && a.Health > 0))
     {
         if (KillstealMenu["KSE1"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady() && enemy.Health < Damage.EDamage(enemy) && Program.E.Instance().Name == Program.Spells["E1"] &&
             enemy.Distance(_Player) < 430)
         {
             Program.E.Cast();
             return;
         }
         if (KillstealMenu["KSQ2"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && enemy.HasQBuff() && enemy.Health < Damage.Q2Damage(enemy) && Program.Q.Instance().Name == Program.Spells["Q2"] && enemy.Distance(_Player) < 1400)
         {
             Program.Q2.Cast();
             return;
         }
         if (KillstealMenu["KSQ1"].Cast <CheckBox>().CurrentValue&& Program.Q.IsReady() && enemy.Health < Damage.QDamage(enemy) && Program.Q.Instance().Name == Program.Spells["Q1"] && enemy.Distance(_Player) < 1100)
         {
             Program.Q.Cast(enemy);
             return;
         }
         if (KillstealMenu["KSR1"].Cast <CheckBox>().CurrentValue&& Program.R.IsReady() && enemy.Health < Damage.QDamage(enemy) &&
             enemy.Distance(_Player) < Program.R.Range)
         {
             Program.R.Cast(enemy);
         }
     }
 }
Ejemplo n.º 2
0
        public static void WaveClear()
        {
            var minions = EntityManager.MinionsAndMonsters.EnemyMinions.Where(a => a.Distance(Player.Instance) < 1400).OrderBy(a => a.Health);
            var minion  = (Extended.BuffedEnemy != null && Extended.BuffedEnemy.IsValidTarget(1400)) ? Extended.BuffedEnemy : minions.FirstOrDefault();

            if (minion == null || Program.LastSpellTime + 200 > Environment.TickCount)
            {
                return;
            }

            if (FarmMenu["qExecuteWC"].Cast <CheckBox>().CurrentValue&& Extended.BuffedEnemy != null && Extended.BuffedEnemy.NetworkId == minion.NetworkId)
            {
                if (Program.Q.IsReady() && Damage.Q2Damage(minion, 0, true) > minion.Health)
                {
                    Program.Q2.Cast();
                    Program.LastSpellTime = Environment.TickCount;
                }
            }

            if (FarmMenu["eExecuteWC"].Cast <CheckBox>().CurrentValue&& Program.E.IsReady() && minions.Any(a => a.Health <= Damage.EDamage(a) &&
                                                                                                           Program.E.Instance().Name == Program.Spells["E1"] &&
                                                                                                           a.Distance(Player.Instance) < 430))
            {
                Program.E.Cast();
                Program.LastSpellTime = Environment.TickCount;
            }

            if (FarmMenu["useQ1WC"].Cast <CheckBox>().CurrentValue&& (Damage.QDamage(minion) > minion.Health || Damage.QDamage(minion) + Damage.Q2Damage(minion, (float)Damage.QDamage(minion)) > minion.Health) && Program.Q.IsReady())
            {
                Program.Q.Cast(minion);
                Program.LastSpellTime = Environment.TickCount;
            }
        }