Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 2
0
        public static void Lane()
        {
            if (KMenu.KDlaneM >= User.ManaPercent)
            {
                return;
            }

            if (KMenu.KDlaneQ && KSpells.QCount < KMenu.axeMaximum - 1 && User.CountEnemyMinionsInRange(User.GetAutoAttackRange()) > 0 && !User.Spellbook.IsAutoAttacking)
            {
                KSpells.CastQ();
            }
            if (KMenu.KDlaneW)
            {
                KSpells.CastW();
            }
        }
Exemplo n.º 3
0
        public static void Harass()
        {
            if (KMenu.KDharassM >= User.ManaPercent)
            {
                return;
            }

            if (KMenu.KDharassQ && KSpells.QCount < KMenu.axeMaximum - 1 && User.CountEnemiesInRange(User.GetAutoAttackRange()) > 0 && !User.Spellbook.IsAutoAttacking)
            {
                KSpells.CastQ();
            }
            if (KMenu.KDharassW && User.CountEnemiesInRange(User.GetAutoAttackRange()) > 0)
            {
                KSpells.CastW();
            }
            if (KMenu.KDharassE)
            {
                var targetEnemy = TargetSelector.GetTarget(KSpells.E.Range, DamageType.Physical);
                KSpells.CastE(targetEnemy);
            }
        }
Exemplo n.º 4
0
        public static void Jungle()
        {
            if (KMenu.KDjungleM >= User.ManaPercent)
            {
                return;
            }

            Obj_AI_Base targetMonster = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, User.GetAutoAttackRange()).Where(X => X.IsValid && !X.IsDead && !X.IsInvulnerable).OrderBy(X => X.MaxHealth).LastOrDefault();

            if (targetMonster == null)
            {
                return;
            }

            if (KMenu.KDjungleQ && KSpells.QCount < KMenu.axeMaximum - 1 && !User.Spellbook.IsAutoAttacking)
            {
                KSpells.CastQ();
            }
            if (KMenu.KDlaneW)
            {
                KSpells.CastW();
            }
        }