Exemplo n.º 1
0
        private static void AutoQ()
        {
            if (CommonUtilities.Player.IsDead)
            {
                return;
            }

            var autoQ = getKeyBindItem(miscMenu, "autoQ") && q.IsReady();

            var qHealth = getSliderItem(miscMenu, "autoQhp");

            var target = TargetSelector.GetTarget(q.Range, DamageType.Magical);

            if (autoQ && CommonUtilities.Player.HealthPercent >= qHealth && target.IsValidTarget(q.Range))
            {
                if (q.GetPrediction(target).Hitchance >= CommonUtilities.GetHitChance("hitchanceQ"))
                {
                    q.Cast(target);
                }
            }
        }
Exemplo n.º 2
0
        private static void AfterAttack(AttackableUnit target, EventArgs args)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                if (getCheckBoxItem(comboMenu, "useE") && e.IsReady() && target is AIHeroClient && target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                if (getCheckBoxItem(clearMenu, "useEj") && e.IsReady() && target is Obj_AI_Minion && target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) ||
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                if ((getCheckBoxItem(miscMenu, "titanicC") || getCheckBoxItem(miscMenu, "ravenousC") ||
                     getCheckBoxItem(miscMenu, "tiamatC")) && !e.IsReady() && target is AIHeroClient &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                if ((getCheckBoxItem(miscMenu, "titanicF") || getCheckBoxItem(miscMenu, "ravenousF") ||
                     getCheckBoxItem(miscMenu, "tiamatF")) && !e.IsReady() && target is Obj_AI_Minion &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }
        }
Exemplo n.º 3
0
        private static void AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if ((ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) && unit.IsMe)
            {
                if (ConfigMenu.config.Item("useE").GetValue <bool>() && e.IsReady() && target is Obj_AI_Hero && target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if (ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && unit.IsMe)
            {
                if (ConfigMenu.config.Item("useEj").GetValue <bool>() && e.IsReady() && target is Obj_AI_Minion && target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if ((ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo ||
                 ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) && unit.IsMe)
            {
                if ((ConfigMenu.config.Item("titanicC").GetValue <bool>() || ConfigMenu.config.Item("ravenousC").GetValue <bool>() ||
                     ConfigMenu.config.Item("tiamatC").GetValue <bool>()) && !e.IsReady() && target is Obj_AI_Hero &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }

            if (ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && unit.IsMe)
            {
                if ((ConfigMenu.config.Item("titanicF").GetValue <bool>() || ConfigMenu.config.Item("ravenousF").GetValue <bool>() ||
                     ConfigMenu.config.Item("tiamatF").GetValue <bool>()) && !e.IsReady() && target is Obj_AI_Minion &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }
        }
Exemplo n.º 4
0
        private static void KillSteal()
        {
            if (!ConfigMenu.config.Item("killsteal").GetValue <bool>())
            {
                return;
            }

            if (ConfigMenu.config.Item("useQks").GetValue <bool>() && q.IsReady())
            {
                foreach (var target in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(q.Range) && !enemy.HasBuffOfType(BuffType.Invulnerability)).Where(target => target.Health < CommonUtilities.Player.GetSpellDamage(target, SpellSlot.Q)))
                {
                    q.CastIfHitchanceEquals(target, CommonUtilities.GetHitChance("hitchanceQ"));
                }
            }

            if (ConfigMenu.config.Item("useIks").GetValue <bool>() && ignite.Slot.IsReady() && ignite != null && ignite.Slot != SpellSlot.Unknown)
            {
                foreach (var target in HeroManager.Enemies.Where(enemy => enemy.IsValidTarget(ignite.SData.CastRange) && !enemy.HasBuffOfType(BuffType.Invulnerability)).Where(target => target.Health < CommonUtilities.Player.GetSummonerSpellDamage(target, Damage.SummonerSpell.Ignite)))
                {
                    CommonUtilities.Player.Spellbook.CastSpell(ignite.Slot, target);
                }
            }
        }