Example #1
0
 public static void DrawRect()
 {
     if (GetBool("activatebubba", typeof(KeyBind)))
     {
         var getresults = BubbaKush.GetPositions(Player, 600, (byte)GetValue("enemiescount"),
                                                 HeroManager.Enemies.Where(x => x.Distance(Player) < 1200).ToList());
         if (getresults.Count > 1)
         {
             var ward        = Items.GetWardSlot();
             var getposition = BubbaKush.SelectBest(getresults, Player);
             Render.Circle.DrawCircle(getposition, 100, Color.Red, 3, true);
             var heros =
                 HeroManager.Enemies.Where(x => x.Distance(Player) < 400).OrderBy(x => x.Distance(Player));
             if (LeeSin.HasFlash() && R.IsReady())
             {
                 if (Player.Distance(getposition) < 400 && Player.Distance(getposition) < R.Range &&
                     heros.FirstOrDefault() != null)
                 {
                     R.Cast(heros.FirstOrDefault());
                     Lastthingy = Environment.TickCount;
                 }
             }
             if (Player.Distance(getposition) < 30 && heros.FirstOrDefault() != null && R.IsReady())
             {
                 R.Cast(heros.FirstOrDefault());
             }
         }
     }
 }
Example #2
0
        public static void GetPosition()
        {
            var heros = HeroManager.Enemies.FirstOrDefault(x => x.IsValidTarget(1100));
            {
                if (heros != null)
                {
                    OnLoad.PredictionRnormal.From = LeeSin.R.GetPrediction(heros).UnitPosition;
                    foreach (
                        var x in
                        HeroManager.Enemies.Where(
                            y => y.NetworkId != heros.NetworkId && y.IsValidTarget(LeeSin.R.Range)))
                    {
                        OnLoad.PredictionRnormal.Unit = x;
                        var poutput2 = SebbyLib.Prediction.Prediction.GetPrediction(OnLoad.PredictionRnormal);
                        var castPos  = poutput2.CastPosition;
                        var ext      = castPos.Extend(OnLoad.PredictionRnormal.From,
                                                      castPos.Distance(OnLoad.PredictionRnormal.From) + 200);

                        Render.Circle.DrawCircle(ext, 100, Color.Aqua);
                        if (Helper.Player.Distance(ext) < LeeSin.R.Range && LeeSin.HasFlash())
                        {
                            //WardManager.WardJump.WardJumped(ext, true);
                            if (LeeSin.R.Cast(x) == Spell.CastStates.SuccessfullyCasted)
                            {
                                LeeSin.LastBubba = Environment.TickCount;
                            }
                            if (Environment.TickCount - LeeSin.LastBubba < 1000)
                            {
                                Helper.Player.Spellbook.CastSpell(Helper.Player.GetSpellSlot("SummonerFlash"), ext);
                            }
                        }
                    }
                }
            }
        }