예제 #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);
                var predE = E.GetPrediction(target);
                if (MariagiospaldaMenu.KillstealR() && R.IsReady() &&
                    target.Health + target.AttackShield + MariagiospaldaMenu.ComboR1() <= Player.GetSpellDamage(target, SpellSlot.R))
                {
                    R.Cast(target);
                }

                if (MariagiospaldaMenu.KillstealW() &&
                    target.Health + target.AttackShield <
                    Player.GetSpellDamage(target, SpellSlot.W) && Player.Mana >= 100)
                {
                    if (W.IsReady() && target.IsValidTarget(W.Range))
                    {
                        W.Cast();
                    }
                }

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

                if (MariagiospaldaMenu.KillstealE() && E.IsReady() &&
                    target.Health + target.AttackShield <
                    Player.GetSpellDamage(target, SpellSlot.E) && PiuwPiuwMissile == null &&
                    !MariagiospaldaMenu.ComboE2())
                {
                    if (predE.HitChance >= HitChance.High)
                    {
                        E.Cast(predE.CastPosition);
                    }
                }
            }
        }
예제 #2
0
        private static void CastE()
        {
            if (PiuwPiuwMissile == null && !MariagiospaldaMenu.ComboE2())
            {
                var Pred =
                    EntityManager.Heroes.Enemies.Where(
                        h =>
                        h.IsValidTarget() && !h.IsZombie &&
                        Vector3.Distance(h.ServerPosition, Player.ServerPosition) <= E.Range)
                    .Select(hero => E.GetPrediction(hero));

                var BestLocation = Pred.FirstOrDefault();
                if (BestLocation.HitChance >= HitChance.Medium && E.IsReady())
                {
                    E.Cast(BestLocation.CastPosition);
                }
            }
            E2();
        }
예제 #3
0
        private static void E2()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (MariagiospaldaMenu.ComboE2() && Player.HealthPercent > 25 && PiuwPiuwMissile != null && E.IsReady())
            {
                if (Vector2.Distance(MissilePosition, target.ServerPosition.To2D()) < Vector3.Distance(Player.ServerPosition, target.ServerPosition) && Vector3.Distance(target.ServerPosition, PiuwPiuwMissile.EndPosition) > Vector3.Distance(Player.ServerPosition, target.ServerPosition))
                {
                    E1.Cast();
                    return;
                }
                var EndingCount = PiuwPiuwMissile.Position.CountEnemiesInRange(R.Range);

                if (EndingCount >= MariagiospaldaMenu.ComboE1() && R.IsReady() && Vector3.Distance(PiuwPiuwMissile.Position, target.ServerPosition) < Vector3.Distance(Player.ServerPosition, target.ServerPosition))
                {
                    E1.Cast();
                    return;
                }
            }
        }
예제 #4
0
 private static void OnFlee()
 {
     if (E.IsReady() && Player.ManaPercent >= MariagiospaldaMenu.FleeM() && PiuwPiuwMissile == null && !MariagiospaldaMenu.ComboE2())
     {
         E.Cast(Player.ServerPosition.Extend(Game.CursorPos, W.Range).To3D());
         fleeing = true;
     }
 }