Пример #1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (DrawingMenu.GetCheckBoxValue("disableDrawings"))
            {
                return;
            }

            if (PlayerHasSmite)
            {
                if (Smite.IsReady() && !SummonerMenu.GetKeyBindValue("smiteKeybind") && SummonerMenu.GetCheckBoxValue("drawSmiteRange"))
                {
                    Circle.Draw(SharpDX.Color.Yellow, Smite.Range, Player.Instance);
                }
            }

            foreach (var item in Offensive.OffensiveItems.Where(i => i.IsReady() && i.Range > 0))
            {
                Circle.Draw(SharpDX.Color.Orange, item.Range, Player.Instance);
            }

            foreach (var item in Defensive.DefensiveItems.Where(i => i.IsReady() && i.Range > 0))
            {
                Circle.Draw(SharpDX.Color.BlueViolet, item.Range, Player.Instance);
            }

            if (SettingsMenu.GetCheckBoxValue("dev"))
            {
                foreach (var m in DangerHandler.Missiles)
                {
                    Circle.Draw(SharpDX.Color.Purple, 20f, 5f, m);
                }

                Circle.Draw(SharpDX.Color.Blue, Player.Instance.BoundingRadius + SettingsMenu.GetSliderValue("saferange"), Player.Instance);
            }
        }
Пример #2
0
        private static void OffensiveOnTick()
        {
            var offItem =
                Offensive.OffensiveItems.FirstOrDefault(i => i.IsReady() && i.IsOwned() && OffensiveMenu.GetCheckBoxValue("check" + (int)i.Id));

            if (offItem != null)
            {
                if ((offItem.Id == ItemId.Tiamat || offItem.Id == ItemId.Ravenous_Hydra) && CanPost)
                {
                    var killMinion =
                        EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(
                            m => m.IsValidTarget(offItem.Range) && m.Health <= Player.Instance.GetAutoAttackDamage(m) * 0.6f);

                    var countMinion = EntityManager.MinionsAndMonsters.EnemyMinions.Count(m => m.IsValidTarget(offItem.Range));

                    var targetTiamat = TargetSelector.GetTarget(offItem.Range, DamageType.Physical);

                    if (targetTiamat != null && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                    {
                        offItem.Cast();
                        return;
                    }

                    if ((killMinion != null || countMinion >= 3) && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
                    {
                        offItem.Cast();
                        return;
                    }
                }

                if (SettingsMenu.GetCheckBoxValue("comboUseItems")
                    ? Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)
                    : offItem.IsReady())
                {
                    if (offItem.Id == ItemId.Titanic_Hydra && CanPost)
                    {
                        var targetTitanic = TargetSelector.GetTarget(offItem.Range, DamageType.Physical);
                        if (targetTitanic != null)
                        {
                            offItem.Cast();
                        }
                        return;
                    }

                    var target = TargetSelector.GetTarget(offItem.Range, DamageType.Mixed);
                    if (target != null && offItem.IsReady())
                    {
                        offItem.Cast(target);
                    }
                }
            }
        }
Пример #3
0
        private static void Game_OnTick(EventArgs args)
        {
            OffensiveOnTick();
            ConsumablesOnTick();
            IgniteOnTick();
            Revealer.OnTick();

            if (SettingsMenu.GetCheckBoxValue("dev"))
            {
                foreach (var a in EntityManager.Heroes.Allies.Where(a => a.IsInDanger(SettingsMenu, 80)))
                {
                    Chat.Print(a.ChampionName + " On danger");
                }
            }
        }
Пример #4
0
        private static void Game_OnTick(EventArgs args)
        {
            if (TickCount > Environment.TickCount)
            {
                return;
            }

            OffensiveOnTick();
            ConsumablesOnTick();
            IgniteOnTick();
            CastPoroThrower();
            Revealer.OnTick();

            if (SettingsMenu.GetCheckBoxValue("dev"))
            {
                foreach (var a in EntityManager.Heroes.Allies.Where(a => a.IsInDanger(80)))
                {
                    Chat.Print(a.ChampionName + " On danger");
                }
            }

            TickCount = Environment.TickCount + SettingsMenu.GetSliderValue("tickLimiter");
        }