Пример #1
0
 public static void Combo()
 {
     if (KMenu.KDcomboQ && KSpells.QCount < KMenu.axeMaximum - 1 && User.CountEnemiesInRange(User.GetAutoAttackRange()) > 0 && !User.Spellbook.IsAutoAttacking)
     {
         KSpells.CastQ();
     }
     if (KMenu.KDcomboW && User.CountEnemiesInRange(User.GetAutoAttackRange()) > 0)
     {
         KSpells.CastW();
     }
     if (KMenu.KDcomboE)
     {
         var targetEnemy = TargetSelector.GetTarget(KSpells.E.Range, DamageType.Physical);
         KSpells.CastE(targetEnemy);
     }
     if (KMenu.KDcomboR)
     {
         var targetEnemy =
             EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(2000)).FirstOrDefault(x => User.GetSpellDamage(x, SpellSlot.R) * 2 > x.Health && (x.Distance(User.Position) > User.GetAutoAttackRange() || User.CountEnemiesInRange(KSpells.E.Range) > 2));
         if (targetEnemy != null)
         {
             KSpells.CastR(targetEnemy);
         }
     }
 }
Пример #2
0
 public static void Steal()
 {
     if (KMenu.KDstealE)
     {
         var targetEnemy =
             EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(KSpells.E.Range)).FirstOrDefault(x => User.GetSpellDamage(x, SpellSlot.E) * 2 > x.Health && (x.Distance(User.Position) > User.GetAutoAttackRange() || User.CountEnemiesInRange(KSpells.E.Range) > 2));
         if (targetEnemy != null)
         {
             KSpells.CastR(targetEnemy);
         }
     }
     if (KMenu.KDstealR)
     {
         var targetEnemy =
             EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(KMenu.KDstealRlimit)).FirstOrDefault(x => User.GetSpellDamage(x, SpellSlot.R) * 2 > x.Health && (x.Distance(User.Position) > User.GetAutoAttackRange() || User.CountEnemiesInRange(KSpells.E.Range) > 2));
         if (targetEnemy != null)
         {
             KSpells.CastR(targetEnemy);
         }
     }
 }