Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
0
        private static void SmiteOnTick()
        {
            if (!PlayerHasSmite || !Smite.IsReady() || Smite == null || SummonerMenu.GetKeyBindValue("smiteKeybind"))
            {
                return;
            }

            Obj_AI_Base GetJungleMinion;

            var comboBoxValue = SummonerMenu.Get <ComboBox>("comboBox").CurrentValue;
            var sliderSafeDMG = SummonerMenu.GetSliderValue("sliderDMGSmite");

            switch (comboBoxValue)
            {
            case 0:
                GetJungleMinion =
                    EntityManager.MinionsAndMonsters.GetJungleMonsters()
                    .FirstOrDefault(
                        m =>
                        MonsterSmiteables.Contains(m.BaseSkinName) && m.IsValidTarget(Smite.Range) &&
                        Prediction.Health.GetPrediction(m, Game.Ping) <= SmiteDamage() - sliderSafeDMG &&
                        SummonerMenu.GetCheckBoxValue("monster" + m.BaseSkinName));
                break;

            case 1:
                GetJungleMinion =
                    EntityManager.MinionsAndMonsters.GetJungleMonsters()
                    .FirstOrDefault(
                        m =>
                        MonsterSmiteables.Contains(m.BaseSkinName) && m.IsValidTarget(Smite.Range) &&
                        m.Health <= SmiteDamage() - sliderSafeDMG &&
                        SummonerMenu.GetCheckBoxValue("monster" + m.BaseSkinName));
                break;

            default:
                GetJungleMinion = null;
                break;
            }


            if (GetJungleMinion != null)
            {
                Smite.Cast(GetJungleMinion);
            }

            if (!SummonerMenu.GetCheckBoxValue("smiteUseOnChampions"))
            {
                return;
            }

            var keepSmite = SummonerMenu.GetSliderValue("smiteKeep");

            var smiteGanker = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("playerganker"));

            if (Smite.Handle.Ammo < keepSmite)
            {
                return;
            }

            if (smiteGanker != null)
            {
                var target =
                    EntityManager.Heroes.Enemies.FirstOrDefault(
                        e =>
                        Prediction.Health.GetPrediction(e, Game.Ping) - 5 <= SmiteKSDamage() && e.IsValidTarget(Smite.Range));

                if (target != null)
                {
                    Smite.Cast(target);
                }
            }

            var smiteDuel = Player.Spells.FirstOrDefault(s => s.Name.ToLower().Contains("duel"));

            if (smiteDuel != null)
            {
                var target = TargetSelector.GetTarget(Smite.Range, DamageType.Mixed);

                if (target != null && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && target.HealthPercent <= 60 &&
                    target.IsInAutoAttackRange(Player.Instance))
                {
                    Smite.Cast(target);
                }
            }
        }