Пример #1
0
 private static void KillSteal()
 {
     foreach (
         var enemy in
         EntityManager.Heroes.Enemies.Where(
             e => e.Distance(Player) <= Q.Range && e.IsValidTarget(1000) && !e.IsInvulnerable))
     {
         if (LucianTheTrollMenu.KillstealQ() && Q.IsReady() &&
             SpellDamage.Qdamage(enemy) >= enemy.Health && enemy.Distance(Player) >= 550)
         {
             Q.Cast(enemy);
         }
         if (LucianTheTrollMenu.KillstealW() && W.IsReady() &&
             SpellDamage.Wdamage(enemy) >= enemy.Health && enemy.Distance(Player) >= 550)
         {
             var predW = W.GetPrediction(enemy);
             if (predW.HitChance == HitChance.High)
             {
                 W.Cast(enemy.Position);
             }
         }
     }
 }