Пример #1
0
 public static void Bitterlogic(int hppercent)
 {
     foreach (var enemy in HeroManager.Enemies.Where(o => o.IsValidTarget(Program.E.Range) && !o.IsDead && !o.IsZombie))
     {
         float spearDamage        = Calculators.ChampionTotalDamage(enemy);
         float killableSpearCount = enemy.Health / spearDamage;
         int   totalSpear         = (int)Math.Ceiling(killableSpearCount);
         if (ObjectManager.Player.Health < hppercent && Calculators.KillableSpearCount(enemy) - 1 < totalSpear)
         {
             Program.E.Cast();
         }
     }
 }