Ejemplo 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))
            {
                if (FappadredMenu.KillstealQ() && Q.IsReady() &&
                    target.Health + target.AttackShield + FappadredMenu.ComboQ1() <
                    Player.GetSpellDamage(target, SpellSlot.Q))
                {
                    Q.Cast(Game.CursorPos);
                }

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