Exemplo n.º 1
0
        /// <summary>
        ///     Called when the game updates itself.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void BuildingClear(EventArgs args)
        {
            if (!(Variables.Orbwalker.GetTarget() is Obj_HQ) && !(Variables.Orbwalker.GetTarget() is Obj_AI_Turret) &&
                !(Variables.Orbwalker.GetTarget() is Obj_BarracksDampener))
            {
                return;
            }

            /// <summary>
            ///     The Q BuildingClear Logic.
            /// </summary>
            if (Vars.Q.IsReady() &&
                GameObjects.Player.ManaPercent
                > ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.Menu["spells"]["q"]["buildings"]) &&
                Vars.Menu["spells"]["q"]["buildings"].GetValue <MenuSliderButton>().BValue)
            {
                Vars.Q.Cast();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        ///     Called on do-cast.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The args.</param>
        public static void JungleClear(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (Orbwalker.LastTarget as Obj_AI_Minion == null ||
                !Targets.JungleMinions.Contains(Orbwalker.LastTarget as Obj_AI_Minion))
            {
                return;
            }

            /// <summary>
            ///     The E JungleClear Logic.
            /// </summary>
            if (Vars.E.IsReady() &&
                GameObjects.Player.HealthPercent >
                ManaManager.GetNeededHealth(Vars.E.Slot, Vars.getSliderItem(Vars.EMenu, "jungleclear")) &&
                Vars.getSliderItem(Vars.EMenu, "jungleclear") != 101)
            {
                Vars.E.Cast();
            }
        }
Exemplo n.º 3
0
        /// <summary>
        ///     Called on do-cast.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The args.</param>
        public static void BuildingClear(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!(Orbwalker.LastTarget is Obj_HQ) &&
                !(Orbwalker.LastTarget is Obj_AI_Turret) &&
                !(Orbwalker.LastTarget is Obj_BarracksDampener))
            {
                return;
            }

            /// <summary>
            ///     The E BuildingClear Logic.
            /// </summary>
            if (Vars.E.IsReady() &&
                GameObjects.Player.HealthPercent >
                ManaManager.GetNeededHealth(Vars.E.Slot, Vars.getSliderItem(Vars.EMenu, "buildings")) &&
                Vars.getSliderItem(Vars.EMenu, "buildings") != 101)
            {
                Vars.E.Cast();
            }
        }
Exemplo n.º 4
0
        /// <summary>
        ///     Called when the game updates itself.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void BuildingClear(EventArgs args)
        {
            if (Orbwalker.LastTarget as Obj_HQ == null &&
                Orbwalker.LastTarget as Obj_AI_Turret == null &&
                Orbwalker.LastTarget as Obj_BarracksDampener == null)
            {
                return;
            }

            /// <summary>
            ///     The Q BuildingClear Logic.
            /// </summary>
            if (Vars.Q.IsReady() &&
                GameObjects.Player.ManaPercent >
                ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.getSliderItem(Vars.QMenu, "buildings")) &&
                Vars.getSliderItem(Vars.QMenu, "buildings") != 101)
            {
                Vars.Q.Cast();
            }
        }
Exemplo n.º 5
0
        /// <summary>
        ///     Fired when the game is updated.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void Clear(EventArgs args)
        {
            if (Bools.HasSheenBuff())
            {
                return;
            }

            /// <summary>
            ///     The Q Clear Logics.
            /// </summary>
            if (Vars.Q.IsReady() &&
                GameObjects.Player.HealthPercent >
                ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.getSliderItem(Vars.QMenu, "clear")) &&
                Vars.getSliderItem(Vars.QMenu, "clear") != 101)
            {
                /// <summary>
                ///     The Q LaneClear Logic.
                /// </summary>
                if (Targets.Minions.Any())
                {
                    foreach (var minion in Targets.Minions.Where(m => Vars.GetRealHealth(m) < (float)GameObjects.Player.LSGetSpellDamage(m, SpellSlot.Q)))
                    {
                        if (!Vars.Q.GetPrediction(minion).CollisionObjects.Any(c => Targets.Minions.Contains(c)))
                        {
                            Vars.Q.Cast(Vars.Q.GetPrediction(minion).UnitPosition);
                        }
                    }
                }

                /// <summary>
                ///     The Q JungleClear Logic.
                /// </summary>
                else if (Targets.JungleMinions.Any())
                {
                    Vars.Q.Cast(Targets.JungleMinions[0].ServerPosition);
                }
            }
        }
Exemplo n.º 6
0
        /// <summary>
        ///     Called when the game updates itself.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void Harass(EventArgs args)
        {
            if (!Targets.Target.LSIsValidTarget() || Invulnerable.Check(Targets.Target))
            {
                return;
            }

            /// <summary>
            ///     The Q Harass Logic.
            /// </summary>
            if (Vars.Q.IsReady() &&
                !GameObjects.Player.IsUnderEnemyTurret() &&
                Targets.Target.LSIsValidTarget(Vars.Q.Range) &&
                GameObjects.Player.HealthPercent >
                ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.getSliderItem(Vars.QMenu, "harass")) &&
                Vars.getSliderItem(Vars.QMenu, "harass") != 101)
            {
                if (!Vars.Q.GetPrediction(Targets.Target).CollisionObjects.Any(c => Targets.Minions.Contains(c)))
                {
                    Vars.Q.Cast(Vars.Q.GetPrediction(Targets.Target).UnitPosition);
                }
            }
        }
Exemplo n.º 7
0
        /// <summary>
        ///     Called when the game updates itself.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void Clear(EventArgs args)
        {
            if ((Bools.HasSheenBuff() && Targets.Target.IsValidTarget(GameObjects.Player.GetRealAutoAttackRange())) ||
                !(Variables.Orbwalker.GetTarget() as Obj_AI_Minion).IsValidTarget())
            {
                return;
            }

            /// <summary>
            ///     The W Clear Logic.
            /// </summary>
            if (Vars.W.IsReady() &&
                GameObjects.Player.HealthPercent
                < Vars.Menu["spells"]["w"]["clear"].GetValue <MenuSliderButton>().SValue &&
                Vars.Menu["spells"]["w"]["clear"].GetValue <MenuSliderButton>().BValue)
            {
                Vars.W.Cast();
                return;
            }

            /// <summary>
            ///     The JungleClear Logic.
            /// </summary>
            if (Targets.JungleMinions.Any())
            {
                /// <summary>
                ///     The E JungleClear Logic.
                /// </summary>
                if (Vars.E.IsReady() &&
                    GameObjects.Player.ManaPercent
                    >= ManaManager.GetNeededHealth(Vars.E.Slot, Vars.Menu["spells"]["e"]["jungleclear"]) &&
                    Vars.Menu["spells"]["e"]["jungleclear"].GetValue <MenuSliderButton>().BValue)
                {
                    var objAiMinion = Variables.Orbwalker.GetTarget() as Obj_AI_Minion;
                    if (objAiMinion != null && objAiMinion.IsValidTarget(Vars.R.Range) &&
                        !objAiMinion.HasBuff("udyrbearstuncheck"))
                    {
                        Vars.E.Cast();
                    }
                }
                if (GameObjects.Player.HasBuff("itemmagicshankcharge") ||
                    GameObjects.Player.Spellbook.GetSpell(SpellSlot.Q).Level == 0)
                {
                    /// <summary>
                    ///     The R JungleClear Logic.
                    /// </summary>
                    if (Vars.R.IsReady() && GameObjects.Player.GetBuffCount("UdyrPhoenixStance") != 3 &&
                        GameObjects.Player.ManaPercent
                        >= ManaManager.GetNeededHealth(Vars.R.Slot, Vars.Menu["spells"]["r"]["clear"]) &&
                        Vars.Menu["spells"]["r"]["clear"].GetValue <MenuSliderButton>().BValue)
                    {
                        Vars.R.Cast();
                    }
                }
                else
                {
                    /// <summary>
                    ///     The Q JungleClear Logic.
                    /// </summary>
                    if (Vars.Q.IsReady() &&
                        GameObjects.Player.ManaPercent
                        >= ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.Menu["spells"]["q"]["clear"]) &&
                        Vars.Menu["spells"]["q"]["clear"].GetValue <MenuSliderButton>().BValue)
                    {
                        Vars.Q.Cast();
                    }
                }
            }

            /// <summary>
            ///     The LaneClear R Logic.
            /// </summary>
            else if (Targets.Minions.Any() && Targets.Minions.Count >= 3)
            {
                if (Vars.R.IsReady() && GameObjects.Player.GetBuffCount("UdyrPhoenixStance") != 3 &&
                    GameObjects.Player.ManaPercent
                    >= ManaManager.GetNeededHealth(Vars.R.Slot, Vars.Menu["spells"]["r"]["clear"]) &&
                    Vars.Menu["spells"]["r"]["clear"].GetValue <MenuSliderButton>().BValue)
                {
                    Vars.R.Cast();
                }
            }
        }
Exemplo n.º 8
0
        /// <summary>
        ///     Called when the game updates itself.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void Automatic(EventArgs args)
        {
            /// <summary>
            ///     The Automatic Q LastHit Logics.
            /// </summary>
            if (Vars.Q.IsReady() &&
                !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) &&
                GameObjects.Player.HealthPercent >
                ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.getSliderItem(Vars.QMenu, "logical")) &&
                Vars.getSliderItem(Vars.QMenu, "logical") != 101)
            {
                foreach (var minion in GameObjects.EnemyMinions.Where(
                             m =>
                             m.LSIsValidTarget(Vars.Q.Range) &&
                             !m.LSIsValidTarget(Vars.AARange) &&
                             Vars.GetRealHealth(m) <
                             (float)GameObjects.Player.LSGetSpellDamage(m, SpellSlot.Q)))
                {
                    if (!Vars.Q.GetPrediction(minion).CollisionObjects.Any(c => Targets.Minions.Contains(c)))
                    {
                        Vars.Q.Cast(minion.ServerPosition);
                    }
                }
            }

            /// <summary>
            ///     The Automatic W Logic.
            /// </summary>
            if (Vars.W.IsReady())
            {
                /// <summary>
                ///     If the player doesn't have the W Buff.
                /// </summary>
                if (!GameObjects.Player.HasBuff("BurningAgony"))
                {
                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                    {
                        if (GameObjects.Player.HealthPercent >= ManaManager.GetNeededHealth(Vars.W.Slot, Vars.getSliderItem(Vars.WMenu, "clear")) && Vars.getSliderItem(Vars.WMenu, "clear") != 101)
                        {
                            if (Targets.JungleMinions.Any() ||
                                Targets.Minions.Count() >= 2)
                            {
                                Vars.W.Cast();
                            }
                        }
                    }

                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                    {
                        if (GameObjects.Player.CountEnemyHeroesInRange(Vars.W.Range) > 0 && Vars.getCheckBoxItem(Vars.WMenu, "combo"))
                        {
                            Vars.W.Cast();
                        }
                    }
                }

                /// <summary>
                ///     If the player has the W Buff.
                /// </summary>
                else
                {
                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                    {
                        if (GameObjects.Player.HealthPercent < ManaManager.GetNeededHealth(Vars.W.Slot, Vars.getSliderItem(Vars.WMenu, "clear")) || !Targets.JungleMinions.Any() && Targets.Minions.Count() < 2 || Vars.getSliderItem(Vars.WMenu, "clear") == 101)
                        {
                            Vars.W.Cast();
                        }
                    }

                    if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                    {
                        if (GameObjects.Player.CountEnemyHeroesInRange(Vars.W.Range) == 0 || !Vars.getCheckBoxItem(Vars.WMenu, "combo"))
                        {
                            Vars.W.Cast();
                        }
                    }
                }
            }

            /// <summary>
            ///     The R Lifesaver Logic.
            /// </summary>
            if (Vars.R.IsReady() &&
                GameObjects.Player.CountEnemyHeroesInRange(700) > 0 &&
                Vars.getCheckBoxItem(Vars.RMenu, "lifesaver") &&
                Health.GetPrediction(GameObjects.Player, (int)(250 + Game.Ping / 2f)) <= GameObjects.Player.MaxHealth / 5)
            {
                Vars.R.Cast();
            }
        }
Exemplo n.º 9
0
        /// <summary>
        ///     Called when the game updates itself.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public static void Clear(EventArgs args)
        {
            if (Bools.HasSheenBuff() ||
                !(Orbwalker.LastTarget as Obj_AI_Minion).IsValidTarget())
            {
                return;
            }

            /// <summary>
            ///     The W Clear Logic.
            /// </summary>
            if (Vars.W.IsReady() &&
                GameObjects.Player.HealthPercent <
                Vars.getSliderItem(Vars.WMenu, "clear") &&
                Vars.getSliderItem(Vars.WMenu, "clear") != 101)
            {
                Vars.W.Cast();
                return;
            }

            /// <summary>
            ///     The JungleClear Logic.
            /// </summary>
            if (Targets.JungleMinions.Any())
            {
                /// <summary>
                ///     The E JungleClear Logic.
                /// </summary>
                if (Vars.E.IsReady() &&
                    GameObjects.Player.ManaPercent >=
                    ManaManager.GetNeededHealth(Vars.E.Slot, Vars.getSliderItem(Vars.EMenu, "jungleclear")) &&
                    Vars.getSliderItem(Vars.EMenu, "jungleclear") != 101)
                {
                    if ((Orbwalker.LastTarget as Obj_AI_Minion).IsValidTarget(Vars.R.Range) &&
                        !(Orbwalker.LastTarget as Obj_AI_Minion).HasBuff("udyrbearstuncheck"))
                    {
                        Vars.E.Cast();
                    }
                }

                if (GameObjects.Player.HasBuff("itemmagicshankcharge") ||
                    GameObjects.Player.Spellbook.GetSpell(SpellSlot.Q).Level == 0)
                {
                    /// <summary>
                    ///     The R JungleClear Logic.
                    /// </summary>
                    if (Vars.R.IsReady() &&
                        GameObjects.Player.GetBuffCount("UdyrPhoenixStance") != 3 &&
                        GameObjects.Player.ManaPercent >=
                        ManaManager.GetNeededHealth(Vars.R.Slot, Vars.getSliderItem(Vars.RMenu, "clear")) &&
                        Vars.getSliderItem(Vars.RMenu, "clear") != 101)
                    {
                        Vars.R.Cast();
                    }
                }
                else
                {
                    /// <summary>
                    ///     The Q JungleClear Logic.
                    /// </summary>
                    if (Vars.Q.IsReady() &&
                        GameObjects.Player.ManaPercent >=
                        ManaManager.GetNeededHealth(Vars.Q.Slot, Vars.getSliderItem(Vars.QMenu, "clear")) &&
                        Vars.getSliderItem(Vars.QMenu, "clear") != 101)
                    {
                        Vars.Q.Cast();
                    }
                }
            }

            /// <summary>
            ///     The LaneClear R Logic.
            /// </summary>
            else if (Targets.Minions.Any() &&
                     Targets.Minions.Count() >= 3)
            {
                if (Vars.R.IsReady() &&
                    GameObjects.Player.GetBuffCount("UdyrPhoenixStance") != 3 &&
                    GameObjects.Player.ManaPercent >=
                    ManaManager.GetNeededHealth(Vars.R.Slot, Vars.getSliderItem(Vars.RMenu, "clear")) &&
                    Vars.getSliderItem(Vars.RMenu, "clear") != 101)
                {
                    Vars.R.Cast();
                }
            }
        }