Esempio n. 1
0
        private static void KillSteal()
        {
            foreach (
                var target in
                EntityManager.Heroes.Enemies.Where(
                    hero =>
                    hero.IsValidTarget(R.Range) && !hero.IsDead && !hero.IsZombie && hero.HealthPercent <= 25))
            {
                var predQ = Q.GetPrediction(target);
                if (FapturneMenu.KillstealR() && R.IsReady() &&
                    target.Health + target.AttackShield + FapturneMenu.ComboR1() <= Player.GetSpellDamage(target, SpellSlot.R))
                {
                    R.Cast();
                    R1.Cast(target);
                }

                if (FapturneMenu.KillstealQ() && Q.IsReady() &&
                    target.Health + target.AttackShield + FapturneMenu.ComboQ1() <
                    Player.GetSpellDamage(target, SpellSlot.Q))
                {
                    if (predQ.HitChance >= HitChance.High)
                    {
                        Q.Cast(target.Position);
                    }
                }

                if (FapturneMenu.KillstealE() && E.IsReady() &&
                    target.Health + target.AttackShield <
                    Player.GetSpellDamage(target, SpellSlot.E))
                {
                    E.Cast(target);
                }
            }
        }