Beispiel #1
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (W.IsReady() && HarassMenu.CheckBoxValue(W.Slot) && HarassMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
            {
                if (!W.IsInRange(target))
                {
                    W.Cast(user.ServerPosition.Extend(target, W.Range).To3D());
                }
                else
                {
                    W.Cast(target);
                }
            }
            else
            {
                if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
                {
                    Q.Cast(target, HitChance.Low);
                }
                if (E.IsReady() && Ehit(target) && HarassMenu.CheckBoxValue(E.Slot) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
                {
                    E.Cast(target);
                }
            }
        }
Beispiel #2
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast(target, HitChance.Low);
            }

            if (W.IsReady() && HarassMenu.CheckBoxValue(W.Slot) && HarassMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
            {
                W.Cast(target, HitChance.Medium);
            }

            if (E.IsReady() && HarassMenu.CheckBoxValue(E.Slot) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
            {
                if (SelectBall(target) != null)
                {
                    E.Cast(SelectBall(target));
                }
                else
                {
                    if (target.IsKillable(E.Range))
                    {
                        E.Cast(target);
                    }
                }
            }
        }
Beispiel #3
0
 public override void Harass()
 {
     if (HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent) && E.IsReady())
     {
         var etarget = bestETarget;
         if (etarget != null)
         {
             E.Cast(etarget);
         }
     }
     if (ComboMenu.CheckBoxValue(SpellSlot.Q) && HarassMenu.CompareSlider("Qmana", user.ManaPercent) && Q.IsReady())
     {
         var qtarget = bestQTarget;
         if (qtarget != null)
         {
             Q.Cast(qtarget, 36);
         }
     }
     if (ComboMenu.CheckBoxValue(SpellSlot.W) && HarassMenu.CompareSlider("Wmana", user.ManaPercent) && W.IsReady())
     {
         var wtarget = W.GetTarget();
         if (wtarget != null)
         {
             W.Cast(wtarget);
         }
     }
 }
Beispiel #4
0
        public override void Harass()
        {
            foreach (var spell in
                     SpellList.Where(s => s.IsReady() && HarassMenu.CheckBoxValue(s.Slot)))
            {
                var target = TargetSelector.GetTarget(R.Range, DamageType.Physical);
                if (target == null || !target.IsKillable(spell.Range))
                {
                    return;
                }

                if (spell.Slot == SpellSlot.R)
                {
                    R.Cast(target);
                }
                else
                {
                    var spells = spell as Spell.Active;
                    if (!Player.Instance.HasBuff("GarenE"))
                    {
                        spells?.Cast();
                    }
                }
            }
        }
Beispiel #5
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Orbwalker.ValidAzirSoldiers.Count < 1 && W.IsReady() && HarassMenu.CheckBoxValue(W.Slot) && HarassMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
            {
                W.Cast(target);
            }
            else
            {
                if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
                {
                    Q.Cast(target, HitChance.Low);
                }
                if (E.IsReady() && Ehit(target) && HarassMenu.CheckBoxValue(E.Slot) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
                {
                    E.Cast(target);
                }
            }
        }
Beispiel #6
0
        public override void Harass()
        {
            if (IsCastingR || Orbwalker.IsAutoAttacking)
            {
                return;
            }

            var qtarget = Q.GetTarget();
            var wtarget = W.GetTarget();
            var etarget = E.GetTarget();

            if (qtarget != null && HarassMenu.CheckBoxValue(SpellSlot.Q) && HarassMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                if (Q.IsReady() && qtarget.IsKillable(Q.Range))
                {
                    Q.Cast(qtarget);
                }
            }
            if (etarget != null && HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent))
            {
                if (E.IsReady() && etarget.IsKillable(E.Range) && etarget.IsCC())
                {
                    E.Cast(etarget, HitChance.High);
                }
            }
            if (wtarget != null && HarassMenu.CheckBoxValue(SpellSlot.W) && HarassMenu.CompareSlider("Wmana", user.ManaPercent) && wtarget.IsKillable(W.Range))
            {
                W.Cast(wtarget, HitChance.Low);
            }
        }
Beispiel #7
0
        public override void Harass()
        {
            var qtarget = Q.GetTarget();
            var etarget = EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(e => e.IsKillable(BallRange) && EHit(e) != null);

            var Qmana = HarassMenu.CompareSlider("Qmana", user.ManaPercent);
            var Wmana = HarassMenu.CompareSlider("Wmana", user.ManaPercent);
            var Emana = HarassMenu.CompareSlider("Emana", user.ManaPercent);

            var QReady = Q.IsReady() && HarassMenu.CheckBoxValue("Q") && Qmana;
            var WReady = W.IsReady() && HarassMenu.CheckBoxValue("W") && Wmana;
            var EReady = E.IsReady() && HarassMenu.CheckBoxValue("E") && Emana;

            if (qtarget != null)
            {
                if (QReady)
                {
                    QCast(qtarget);
                }
            }
            if (WReady && EntityManager.Heroes.Enemies.Count(e => WHit(e)) >= 1)
            {
                W.Cast();
            }

            if (EReady && etarget != null)
            {
                if (EHit(etarget) != null)
                {
                    E.Cast(EHit(etarget));
                }
            }
        }
Beispiel #8
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.Q) && user.PredictHealthPercent() > 25)
            {
                QAOE(target);
            }
            if (W.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.W))
            {
                if (W.Handle.ToggleState == 1 && user.PredictHealthPercent() > 50)
                {
                    W.Cast();
                }
                else
                {
                    W.Cast();
                }
            }
            if (E.IsReady() && target.IsKillable(E.Range) && HarassMenu.CheckBoxValue(SpellSlot.E))
            {
                E.Cast(target, HitChance.Medium);
            }
        }
Beispiel #9
0
        public override void Harass()
        {
            var QTarget         = Q.GetTarget();
            var ETarget         = E.GetTarget();
            var EextendedTarget = TargetSelector.GetTarget(EntityManager.Heroes.Enemies.Where(e => e.IsKillable(MaxERange)), DamageType.Magical);

            if (E.IsReady() && HarassMenu.CheckBoxValue("E") && Player.Instance.ManaPercent > HarassMenu.SliderValue("Emana"))
            {
                if (ETarget != null && ETarget.IsKillable())
                {
                    E.Cast(ETarget, 30);
                }
                else
                {
                    if (EextendedTarget != null)
                    {
                        var cannontarget = ExtendETarget(EextendedTarget);
                        if (cannontarget != null)
                        {
                            E.Cast(cannontarget);
                        }
                    }
                }
                return;
            }
            if (Q.IsReady() && HarassMenu.CheckBoxValue("Q") && Player.Instance.ManaPercent > HarassMenu.SliderValue("Qmana"))
            {
                QCast(QTarget);
            }
        }
Beispiel #10
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                if (W.Handle.ToggleState == 2)
                {
                    W.Cast();
                }
                return;
            }

            if (HarassMenu.CheckBoxValue(SpellSlot.Q) && Q.IsReady() && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast(target, HitChance.Medium);
            }
            if (HarassMenu.CheckBoxValue(SpellSlot.W) && W.IsReady() && HarassMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
            {
                if (target.IsKillable(W.Range) && W.Handle.ToggleState == 1)
                {
                    W.Cast();
                }
                else
                {
                    W.Cast();
                }
            }
            if (HarassMenu.CheckBoxValue(SpellSlot.E) && E.IsReady() && target.IsKillable(E.Range) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
            {
                E.Cast();
            }
        }
Beispiel #11
0
        public override void Harass()
        {
            var qtarget     = Q.GetTarget();
            var wtarget     = W.GetTarget();
            var etarget     = E.GetTarget();
            var eballtarget = Eball.GetTarget();
            var qmanacheck  = Player.Instance.ManaPercent > HarassMenu.SliderValue("Qmana");
            var wmanacheck  = Player.Instance.ManaPercent > HarassMenu.SliderValue("Wmana");
            var emanacheck  = Player.Instance.ManaPercent > HarassMenu.SliderValue("Emana");

            if (Q.IsReady() && E.IsReady() && qmanacheck && emanacheck && eballtarget != null && eballtarget.IsKillable(Eball.Range) && HarassMenu.CheckBoxValue("QE"))
            {
                QE(eballtarget);
            }

            if (Eball.IsReady() && emanacheck && eballtarget != null && HarassMenu.CheckBoxValue("Eball"))
            {
                EBall(eballtarget);
            }

            if (Q.IsReady() && qtarget != null && qmanacheck && qtarget.IsKillable() && HarassMenu.CheckBoxValue("Q"))
            {
                Q.Cast(qtarget, 30);
            }

            if (etarget != null && E.IsReady() && emanacheck && wtarget.IsKillable() && HarassMenu.CheckBoxValue("E"))
            {
                ECast(etarget);
            }

            if (wtarget != null && W.IsReady() && wmanacheck && HarassMenu.CheckBoxValue("W") && wtarget.IsKillable())
            {
                WCast(wtarget);
            }
        }
Beispiel #12
0
        public override void Harass()
        {
            if (EntityManager.Heroes.Enemies.Any(e => e.RendCount() >= HarassMenu.SliderValue("Estacks") && e.IsKillable(E.Range)) && E.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent))
            {
                if (HarassMenu.CheckBoxValue("Emin"))
                {
                    if (EntityManager.MinionsAndMonsters.EnemyMinions.Any(e => e.EKill() && e.IsKillable(E.Range)) || EntityManager.MinionsAndMonsters.GetJungleMonsters().Any(e => e.EKill() && e.IsKillable(E.Range)))
                    {
                        E.Cast();
                    }
                }
                else
                {
                    E.Cast();
                }
            }

            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (HarassMenu.CheckBoxValue(Q.Slot) && Q.IsReady() && HarassMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                QCast(target);
            }
        }
Beispiel #13
0
        public override void Harass()
        {
            foreach (var spell in
                     SpellList.Where(s => s.IsReady() && s != R && HarassMenu.CheckBoxValue(s.Slot) && HarassMenu.CompareSlider(s.Slot + "mana", user.ManaPercent)))
            {
                var target = TargetSelector.GetTarget(R.Range, DamageType.Physical);
                if (target == null || !target.IsKillable(spell.Range))
                {
                    return;
                }

                if (spell.Slot == SpellSlot.R)
                {
                    if (target.CountEnemyHeros(300) == 0)
                    {
                        R.Cast(target);
                    }
                }
                if (spell.Slot == SpellSlot.E)
                {
                    if (!Player.HasBuff("caitlynheadshot") && !Player.HasBuff("caitlynheadshotrangecheck"))
                    {
                        E.Cast(target, HitChance.Medium);
                    }
                }
                else
                {
                    var skillshot = spell as Spell.Skillshot;
                    skillshot?.Cast(target, HitChance.Medium);
                }
            }
        }
Beispiel #14
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Mixed, Player.Instance.Position);

            if (target == null)
            {
                return;
            }
            if (HarassMenu.CheckBoxValue(Q.Slot) && !CastingUlt)
            {
                if (Q.IsReady() && Player.Instance.IsInRange(target, Q.Range))
                {
                    Q.Cast(target);
                }
            }
            if (HarassMenu.CheckBoxValue(W.Slot) && !CastingUlt)
            {
                if (W.IsReady() && Player.Instance.IsInRange(target, W.Range))
                {
                    W.Cast();
                }
            }
            if (HarassMenu.CheckBoxValue(E.Slot) && !CastingUlt)
            {
                if (E.IsReady() && target.IsSafe() && Player.Instance.IsInRange(target, E.Range))
                {
                    E.Cast(target);
                }
            }
        }
Beispiel #15
0
        public override void Harass()
        {
            var enemiesBeingE =
                EntityManager.Heroes.Enemies.Where(t => t.IsValidTarget(E.Range) && IsBeingE(t))
                .ToArray();

            if (!Q.IsLearned)
            {
                if (!enemiesBeingE.Any() && WReturn.IsReady() && HarassMenu.CheckBoxValue("usereturn") &&
                    Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslidereturn")
                {
                    WReturn.Cast();
                }

                var wTarget = TargetSelector.GetTarget(W.Range, DamageType.Magical, Player.Instance.Position);

                if (wTarget != null && HarassMenu.CheckBoxValue(SpellSlot.W) && !Q.IsLearned && W.IsReady() &&
                    Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslide")
                {
                    W.Cast(wTarget);
                }

                var eTarget = TargetSelector.GetTarget(E.Range, DamageType.Magical, Player.Instance.Position);

                if (eTarget != null && HarassMenu.CheckBoxValue(SpellSlot.E) && !Q.IsLearned && E.IsReady())
                {
                    E.Cast(eTarget);
                }
            }

            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical, Player.Instance.Position);

            if (target == null)
            {
                return;
            }

            if (HarassMenu.CheckBoxValue(SpellSlot.Q) && Q.IsReady() && Q.IsInRange(target))
            {
                Q.Cast(target);
            }

            if (HarassMenu.CheckBoxValue(SpellSlot.W) && !Q.IsReady() && W.IsReady() &&
                Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslide" &&
                IsMarked(target))
            {
                W.Cast(target);
            }

            if (HarassMenu.CheckBoxValue(SpellSlot.E) &&
                (Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslidereturn" ||
                 !W.IsReady()) && E.IsReady() && E.IsInRange(target))
            {
                E.Cast(target);
            }
        }
Beispiel #16
0
        public override void Harass()
        {
            foreach (var spell in SpellList.Where(s => s.IsReady() && HarassMenu.CheckBoxValue(s.Slot) &&
                                                  s != R))
            {
                var target = Pix != null
                    ? TargetSelector.GetTarget(E.Range + Q.Range, DamageType.Magical)
                    : TargetSelector.GetTarget(Q.Range, DamageType.Magical);

                if (target == null)
                {
                    return;
                }

                var qPredPlayer = Q.GetPrediction(target);
                var qPredPix    = Q1.GetPrediction(target);

                if (spell.Slot == SpellSlot.Q)
                {
                    foreach (
                        var enemy in
                        from enemy in EntityManager.Heroes.Enemies.Where(e => e.IsKillable(E.Range + Q.Range))
                        let qPredPlayer1 = Q.GetPrediction(enemy)
                                           let qPredPix1 = Q1.GetPrediction(enemy)
                                                           where qPredPlayer1.HitChance >= HitChance.Medium && qPredPix1.HitChance >= HitChance.Medium
                                                           select enemy)
                    {
                        Q.Cast(enemy);
                    }

                    if (qPredPlayer.HitChance >= HitChance.Medium || qPredPix.HitChance >= HitChance.Medium)
                    {
                        Q.Cast(target);
                    }
                }
                if (spell.Slot == SpellSlot.W)
                {
                    {
                        if (target.IsKillable(W.Range))
                        {
                            W.Cast(target);
                        }
                    }
                }
                if (spell.Slot != SpellSlot.E)
                {
                    continue;
                }
                {
                    if (target.IsKillable(E.Range))
                    {
                        E.Cast(target);
                    }
                }
            }
        }
Beispiel #17
0
        public override void Harass()
        {
            foreach (var spell in SpellList.Where(s => s.IsReady() && s == W && HarassMenu.CheckBoxValue(s.Slot) && HarassMenu.CompareSlider(s.Slot + "mana", user.ManaPercent)))
            {
                var target = TargetSelector.GetTarget(W.Range, DamageType.Physical);
                if (target == null || !target.IsKillable(spell.Range))
                {
                    return;
                }

                var skillshot = spell as Spell.Skillshot;
                skillshot?.Cast(target, HitChance.Medium);
            }
        }
Beispiel #18
0
        public override void Harass()
        {
            var target = Q.GetTarget();

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.CastAOE(1, Q.Range, target);
            }
        }
Beispiel #19
0
 public override void Harass()
 {
     foreach (var target in EntityManager.Heroes.Enemies.Where(e => e != null))
     {
         if (Q.IsReady() && target.IsKillable(Q.Range) && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
         {
             Q.Cast(target, HitChance.Low);
         }
         if (E.IsReady() && EKill(target) && target.IsKillable(E.Range) && HarassMenu.CheckBoxValue(E.Slot) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
         {
             E.Cast();
         }
     }
 }
Beispiel #20
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);
            if (target == null || !target.IsKillable(Q.Range))
                return;

            foreach (
                var spell in
                    SpellList.Where(
                        s =>
                            s.IsReady() && target.IsKillable(s.Range) && HarassMenu.CheckBoxValue(s.Slot) &&
                            HarassMenu.CompareSlider(s.Slot + "mana", user.ManaPercent))
                        .Where(spell => spell != R && spell != W))
            {
                spell.Cast(target, HitChance.Medium);
            }
        }
Beispiel #21
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(W.Range, DamageType.Physical);

            if (target == null || !target.IsKillable(W.Range))
            {
                return;
            }

            if (Q.IsReady() && target.IsKillable(Q.Range) && HarassMenu.CheckBoxValue(SpellSlot.Q) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast();
            }
            if (W.IsReady() && target.IsKillable(W.Range) && HarassMenu.CheckBoxValue(SpellSlot.W) && HarassMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
            {
                W.Cast(target);
            }
        }
Beispiel #22
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.CastAOE(1, Q.Range, target);
            }
            if (HarassMenu.CheckBoxValue(W.Slot) && target.IsKillable(W.Range))
            {
                SetectCard(target);
            }
        }
Beispiel #23
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(E.Range))
            {
                return;
            }

            if (HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent) && E.IsReady())
            {
                target.ECast();
            }

            if (target.IsKillable(Q.Range) && HarassMenu.CompareSlider("Qmana", user.ManaPercent) && HarassMenu.CheckBoxValue(SpellSlot.Q) && Q.IsReady())
            {
                Q.Cast(target);
            }
        }
Beispiel #24
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                Q.Cast(target, HitChance.Low);
            }
            if (W.IsReady() && OriannaBall != null && target.PredictPosition().IsInRange(OriannaBall, W.Range) && HarassMenu.CheckBoxValue(W.Slot) &&
                HarassMenu.CompareSlider(W.Slot + "mana", user.ManaPercent))
            {
                W.Cast();
            }
        }
Beispiel #25
0
 private static void Orbwalker_OnPostAttack(AttackableUnit target, System.EventArgs args)
 {
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && !ComboMenu.CheckBoxValue(SpellSlot.Q))
     {
         return;
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && !HarassMenu.CheckBoxValue(SpellSlot.Q))
     {
         return;
     }
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) && !HarassMenu.CheckBoxValue(SpellSlot.Q))
     {
         return;
     }
     if (target.IsValidTarget(Config.SafeValue) && Q.IsReady())
     {
         Q.Cast();
     }
 }
Beispiel #26
0
        public override void Harass()
        {
            foreach (var spell in SpellList.Where(s => s.IsReady() && HarassMenu.CheckBoxValue(s.Slot) &&
                                                  s != R))
            {
                var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

                if (target == null)
                {
                    return;
                }

                if (spell.Slot == SpellSlot.Q)

                {
                    Q.Cast(target, HitChance.Medium);
                }

                if (spell.Slot == SpellSlot.W)
                {
                    {
                        if (target.IsKillable(400))
                        {
                            W.Cast();
                        }
                    }
                }

                if (spell.Slot != SpellSlot.E)
                {
                    continue;
                }
                {
                    if (target.IsKillable(E.Range))
                    {
                        E.Cast();
                    }
                    Player.IssueOrder(GameObjectOrder.AttackUnit, target);
                }
            }
        }
Beispiel #27
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range + 100, DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (target.IsKillable(Q.Range + 25))
            {
                if (HarassMenu.CheckBoxValue("Q") && !user.IsDashing() && target.IsKillable(Q.Range) && Q.IsReady())
                {
                    Q.Cast(target, 45);
                }

                if (HarassMenu.CheckBoxValue("E") && E.IsReady())
                {
                    EQ(target, target, true);
                }
            }
        }
Beispiel #28
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(Q.Slot) && HarassMenu.CompareSlider(Q.Slot + "mana", user.ManaPercent))
            {
                foreach (var passive in PassiveList.Where(p => p.Caster != null && p.Vital != null && p.Vital.IsValid && p.Caster.Equals(target)))
                {
                    var pos = target.ServerPosition.Extend(VitalPos(passive.Vital), 100).To3D();
                    Q.Cast(pos);
                }
            }
            if (target.IsKillable(E.Range) && E.IsReady() && HarassMenu.CheckBoxValue(E.Slot) && HarassMenu.CompareSlider(E.Slot + "mana", user.ManaPercent))
            {
                E.Cast();
            }
        }
Beispiel #29
0
        public override void Harass()
        {
            var Qtarget = Q.GetTarget();
            var Wtarget = W.GetTarget();
            var Etarget = E.GetTarget();

            if (SelectBall(Etarget) == null)
            {
                Etarget = EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(t => (BallsList.Any() ? BallsList.Any(b => b.IsInRange(t, Eball.Range) && E.IsInRange(b)) : t.IsKillable(1200)) && t.IsKillable());
            }

            if (Etarget != null && Q.IsReady() && E.IsReady() && HarassMenu.CheckBoxValue("QE") && HarassMenu.CompareSlider("Emana", user.ManaPercent))
            {
                QE(Etarget);
            }

            if (Wtarget != null && W.IsReady() && Wtarget.IsKillable(W.Range) && HarassMenu.CheckBoxValue(SpellSlot.W) && HarassMenu.CompareSlider("Wmana", user.ManaPercent))
            {
                WCast(Wtarget);
                return;
            }
            if (Qtarget != null && Q.IsReady() && Qtarget.IsKillable(Q.Range) && HarassMenu.CheckBoxValue(SpellSlot.Q) && HarassMenu.CompareSlider("Qmana", user.ManaPercent))
            {
                Q.Cast(Qtarget, 30);
                return;
            }
            if (Etarget != null && E.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.E) && HarassMenu.CompareSlider("Emana", user.ManaPercent))
            {
                if (SelectBall(Etarget) != null && E.IsInRange(SelectBall(Etarget)))
                {
                    Eball.Cast(SelectBall(Etarget));
                    return;
                }
                if (Etarget.IsKillable(E.Range) && user.HealthPercent <= 20)
                {
                    E.Cast(Etarget, 25);
                }
            }
        }
Beispiel #30
0
        public override void Harass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (target == null || !target.IsKillable(Q.Range))
            {
                return;
            }

            if (Q.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.Q))
            {
                Q.Cast(target);
            }
            if (W.IsReady() && HarassMenu.CheckBoxValue(SpellSlot.W) && user.CountEnemyHeros(1000) > 1)
            {
                W.Cast(user.PredictPosition());
            }
            if (E.IsReady() && target.IsKillable(E.Range) && HarassMenu.CheckBoxValue(SpellSlot.E))
            {
                E.Cast();
            }
        }