Пример #1
0
 private static void BarrierOnTick()
 {
     if (PlayerHasBarrier && SummonerMenu.GetCheckBoxValue("check" + "barrier") && Player.Instance.IsInDanger(SummonerMenu.GetSliderValue("slider" + "barrier")))
     {
         Barrier.Cast();
     }
 }
Пример #2
0
 private static void IgniteOnTick()
 {
     if (PlayerHasIgnite && SummonerMenu.GetCheckBoxValue("check" + "ignite"))
     {
         var target = TargetSelector.GetTarget(Ignite.Range, DamageType.Mixed);
         if (target != null && Ignite.IsReady() && !target.IsInRange(Player.Instance, SummonerMenu.GetSliderValue("minimunRangeIgnite")))
         {
             var predictedHealth = Prediction.Health.GetPrediction(target, Game.Ping);
             if (predictedHealth <= GetTotalDamage(target) + IgniteDamage() && predictedHealth > IgniteDamage())
             {
                 Ignite.Cast(target);
             }
         }
     }
 }
Пример #3
0
 private static void HealOnTick()
 {
     if (PlayerHasHeal && SummonerMenu.GetCheckBoxValue("check" + "heal"))
     {
         var ally =
             EntityManager.Heroes.Allies.OrderBy(a => a.Health)
             .FirstOrDefault(
                 a => a.IsValidTarget(Heal.Range) && !a.IsMe && a.IsInDanger(SummonerMenu.GetSliderValue("slider" + "heal" + "ally")));
         if (ally != null)
         {
             Heal.Cast();
         }
         if (Player.Instance.IsInDanger(SummonerMenu.GetSliderValue("slider" + "heal" + "me")))
         {
             Heal.Cast();
         }
     }
 }
Пример #4
0
        public static void CastPoroThrower()
        {
            if (!PoroThrower.IsReady() || !SummonerMenu.GetCheckBoxValue("check" + "snowball") || PoroThrower.Name == "snowballfollowupcast")
            {
                return;
            }

            var targetPoro = TargetSelector.GetTarget(PoroThrower.Range, DamageType.True);

            if (targetPoro != null && targetPoro.IsValid)
            {
                var tpp = PoroThrower.GetPrediction(targetPoro);
                if (tpp.HitChancePercent >= 85)
                {
                    PoroThrower.Cast(tpp.CastPosition);
                }
            }
        }
Пример #5
0
        private static void Drawing_OnEndScene(EventArgs args)
        {
            if (PlayerHasSmite && Smite.IsReady() && SummonerMenu.GetCheckBoxValue("drawSmiteDamage"))
            {
                foreach (
                    var jg in
                    EntityManager.MinionsAndMonsters.GetJungleMonsters()
                    .Where(m => m.IsValidTarget(Smite.Range + 400) && m.IsHPBarRendered && !m.Name.Contains("Mini")))
                {
                    if (jg.Name.Contains("Blue"))
                    {
                        Height  = 9;
                        Width   = 142;
                        OffsetX = -4;
                        OffsetY = 7;
                    }

                    if (jg.Name.Contains("Red"))
                    {
                        Height  = 9;
                        Width   = 142;
                        OffsetX = -4;
                        OffsetY = 7;
                    }

                    if (jg.Name.Contains("Dragon"))
                    {
                        Height  = 10;
                        Width   = 143;
                        OffsetX = -4;
                        OffsetY = 8;
                    }

                    if (jg.Name.Contains("Baron"))
                    {
                        Height  = 12;
                        Width   = 191;
                        OffsetX = -29;
                        OffsetY = 6;
                    }

                    if (jg.Name.Contains("Herald"))
                    {
                        Height  = 10;
                        Width   = 142;
                        OffsetX = -4;
                        OffsetY = 7;
                    }

                    if (jg.Name.Contains("Razorbeak"))
                    {
                        Height  = 3;
                        Width   = 74;
                        OffsetX = 30;
                        OffsetY = 7;
                    }

                    if (jg.Name.Contains("Murkwolf"))
                    {
                        Height  = 3;
                        Width   = 74;
                        OffsetX = 30;
                        OffsetY = 7;
                    }

                    if (jg.Name.Contains("Krug"))
                    {
                        Height  = 3;
                        Width   = 80;
                        OffsetX = 27;
                        OffsetY = 7;
                    }

                    if (jg.Name.Contains("Gromp"))
                    {
                        Height  = 3;
                        Width   = 86;
                        OffsetX = 24;
                        OffsetY = 6;
                    }

                    if (jg.Name.Contains("Crab"))
                    {
                        Height  = 2;
                        Width   = 61;
                        OffsetX = 36;
                        OffsetY = 21;
                    }

                    DrawLine(jg);
                }
            }
        }
Пример #6
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);
            }
        }
Пример #7
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);
                }
            }
        }