private static void Game_OnUpdate(EventArgs args)
 {
     if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear)
     {
         return;
     }
     if (!BadaoPoppyHelper.ManaJungle())
     {
         return;
     }
     if (BadaoPoppyHelper.UseEJungle() && Environment.TickCount - BadaoPoppyVariables.QCastTick >= 1250)
     {
         var minion = MinionManager.GetMinions(BadaoMainVariables.E.Range, MinionTypes.All, MinionTeam.Neutral
                                               , MinionOrderTypes.MaxHealth).FirstOrDefault();
         if (minion.BadaoIsValidTarget() && BadaoMath.GetFirstWallPoint(minion.Position.To2D(),
                                                                        minion.Position.To2D().Extend(ObjectManager.Player.Position.To2D(), -300 - minion.BoundingRadius)) != null)
         {
             BadaoMainVariables.E.Cast(minion);
         }
     }
     if (BadaoPoppyHelper.UseQJungle())
     {
         var minion = MinionManager.GetMinions(BadaoMainVariables.Q.Range, MinionTypes.All, MinionTeam.Neutral
                                               , MinionOrderTypes.MaxHealth).FirstOrDefault();
         if (minion != null)
         {
             if (BadaoMainVariables.Q.Cast(minion) == Spell.CastStates.SuccessfullyCasted)
             {
                 BadaoPoppyVariables.QCastTick = Environment.TickCount;
             }
         }
     }
 }
Example #2
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
     {
         return;
     }
     if (BadaoMainVariables.Q.IsReady() && BadaoGravesVariables.ComboQ.GetValue <bool>())
     {
         var target = TargetSelector.GetTarget(BadaoMainVariables.Q.Range, TargetSelector.DamageType.Physical);
         if (target.BadaoIsValidTarget() && BadaoMath.GetFirstWallPoint(Player.Position.To2D(), target.Position.To2D()) == null)
         {
             BadaoMainVariables.Q.Cast(target);
         }
     }
     if (BadaoMainVariables.W.IsReady() && BadaoGravesVariables.ComboW.GetValue <bool>())
     {
         var target = TargetSelector.GetTarget(BadaoMainVariables.W.Range, TargetSelector.DamageType.Physical);
         if (target.BadaoIsValidTarget())
         {
             BadaoMainVariables.W.Cast(target);
         }
     }
     if (BadaoMainVariables.R.IsReady() && BadaoGravesVariables.ComboR.GetValue <bool>())
     {
         foreach (var hero in HeroManager.Enemies.Where(x => x.BadaoIsValidTarget(BadaoMainVariables.R.Range)))
         {
             if (BadaoMainVariables.R.GetDamage(hero) >= hero.Health)
             {
                 BadaoMainVariables.R.Cast(hero);
             }
         }
     }
 }
Example #3
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!BurstKey.GetValue <KeyBind>().Active)
            {
                return;
            }
            var target1 = TargetSelector.GetSelectedTarget();

            Orbwalking.Orbwalk(target1.BadaoIsValidTarget(Player.BoundingRadius + Player.AttackRange + 50) ? target1 : null, Game.CursorPos);
            if (R.IsReady() /* || E.IsReady()*/)
            {
                return;
            }
            if (Q.IsReady())
            {
                var target = TargetSelector.GetSelectedTarget();
                if (target.BadaoIsValidTarget() && BadaoMath.GetFirstWallPoint(Player.Position.To2D(), target.Position.To2D()) == null)
                {
                    Q.Cast(target);
                }
            }
            if (W.IsReady())
            {
                var target = TargetSelector.GetSelectedTarget();
                if (target.BadaoIsValidTarget())
                {
                    W.Cast(target);
                }
            }
        }
 private static void Game_OnUpdate(EventArgs args)
 {
     if (FleeKey.GetValue <KeyBind>().Active)
     {
         Orbwalking.Orbwalk(null, Game.CursorPos);
         if (E.IsReady())
         {
             var nearest = GetEVinasun().MinOrDefault(x => x.Position.Distance(Game.CursorPos));
             if (nearest != null && nearest.Position.Distance(Game.CursorPos) < Player.Distance(Game.CursorPos))
             {
                 var pos = nearest.Position.To2D().Extend(Game.CursorPos.To2D(), 150);
                 E.Cast(pos);
             }
         }
     }
     if (JumpKey.GetValue <KeyBind>().Active)
     {
         var x = Player.Position.Extend(Game.CursorPos, 100);
         var y = Player.Position.Extend(Game.CursorPos, 30);
         var z = Player.Position.Extend(Game.CursorPos, 50);
         if (!x.IsWall() && !y.IsWall())
         {
             Player.IssueOrder(GameObjectOrder.MoveTo, x);
         }
         if (x.IsWall() && !y.IsWall())
         {
             Player.IssueOrder(GameObjectOrder.MoveTo, y);
         }
         if (x.IsWall() && z.IsWall() && W.IsReady() && E.IsReady())
         {
             //for (int i = -30; i < 31; i = i + 5)
             //{
             //    var point = BadaoChecker.BadaoRotateAround(Game.CursorPos.To2D(), Player.Position.To2D(), i);
             //    var firstwall = BadaoMath.GetFirstWallPoint(Player.Position.To2D(), point);
             //    var lastwall = BadaoMath.GetLastWallPoint(Player.Position.To2D(), point);
             //    if (firstwall != null && lastwall != null && BadaoMath.IsRealWall((Vector2)firstwall, (Vector2)lastwall)
             //        && Player.Position.To2D().Distance((Vector2)lastwall) <= 350
             //        && 175 - Player.Distance((Vector2)firstwall) >= ((Vector2)firstwall).Distance((Vector2)lastwall) / 2)
             //    {
             //        var pos = Player.Position.To2D().Extend(point, 150);
             //        W.Cast();
             //        Utility.DelayAction.Add(100 + Game.Ping, () => E.Cast(pos));
             //        break;
             //    }
             //}
             var firstwall = BadaoMath.GetFirstWallPoint(Player.Position.To2D(), Game.CursorPos.To2D());
             var lastwall  = BadaoMath.GetLastWallPoint(Player.Position.To2D(), Game.CursorPos.To2D());
             if (firstwall != null && lastwall != null && BadaoMath.IsRealWall((Vector2)firstwall, (Vector2)lastwall) &&
                 Player.Position.To2D().Distance((Vector2)lastwall) <= 400 &&
                 225 - Player.Distance((Vector2)firstwall) >= ((Vector2)firstwall).Distance((Vector2)lastwall) / 2)
             {
                 var pos = Player.Position.To2D().Extend(Game.CursorPos.To2D(), 225);
                 W.Cast();
                 Utility.DelayAction.Add(100 + Game.Ping, () => E.Cast(pos));
             }
         }
     }
 }
Example #5
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear)
     {
         return;
     }
     if (Player.ManaPercent < BadaoGravesVariables.ManaJungle.GetValue <Slider>().Value)
     {
         return;
     }
     if (BadaoMainVariables.Q.IsReady() && BadaoGravesVariables.JungleQ.GetValue <bool>())
     {
         var target = MinionManager.GetMinions(BadaoMainVariables.Q.Range, MinionTypes.All, MinionTeam.Neutral
                                               , MinionOrderTypes.MaxHealth).FirstOrDefault();
         if (target.BadaoIsValidTarget() && BadaoMath.GetFirstWallPoint(Player.Position.To2D(), target.Position.To2D()) == null)
         {
             BadaoMainVariables.Q.Cast(target);
         }
     }
 }
Example #6
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (!BadaoPoppyHelper.AssasinateActive())
            {
                return;
            }
            var selectedTarget = TargetSelector.SelectedTarget;

            Orbwalker.MoveTo(Game.CursorPos);
            if (!selectedTarget.BadaoIsValidTarget())
            {
                return;
            }
            if (BadaoPoppyHelper.UseRComboKillable())
            {
                if (!BadaoMainVariables.R.IsCharging)
                {
                    if (selectedTarget.BadaoIsValidTarget(500) &&
                        BadaoMainVariables.R.GetDamage(selectedTarget) >= selectedTarget.Health)
                    {
                        BadaoMainVariables.R.StartCharging();
                    }
                }
                else
                {
                    if (selectedTarget.BadaoIsValidTarget(500) &&
                        BadaoMainVariables.R.GetDamage(selectedTarget) >= selectedTarget.Health)
                    {
                        BadaoMainVariables.R.Cast(selectedTarget.Position);
                    }
                    else
                    {
                        if (selectedTarget.BadaoIsValidTarget(BadaoMainVariables.R.Range))
                        {
                            BadaoMainVariables.R.Cast(selectedTarget);
                        }
                    }
                }
            }
            if (BadaoMainVariables.E.IsReady() && Environment.TickCount - BadaoPoppyVariables.QCastTick >= 1250)
            {
                if (selectedTarget.BadaoIsValidTarget(BadaoMainVariables.E.Range))
                {
                    var predPos = BadaoMainVariables.E.GetPrediction(selectedTarget).UnitPosition.LSTo2D();
                    if (BadaoMath.GetFirstWallPoint(predPos, predPos.LSExtend(ObjectManager.Player.Position.LSTo2D(), -300 - selectedTarget.BoundingRadius)) != null)
                    {
                        BadaoMainVariables.E.Cast(selectedTarget);
                        goto nextStep;
                    }
                }
            }
            if (BadaoPoppyHelper.UseEComboGap() && Environment.TickCount - BadaoPoppyVariables.QCastTick >= 1250)
            {
                if (selectedTarget.BadaoIsValidTarget(BadaoMainVariables.E.Range) &&
                    !Orbwalking.InAutoAttackRange(selectedTarget) &&
                    LeagueSharp.Common.Prediction.GetPrediction(selectedTarget, 0.5f).UnitPosition.LSDistance(ObjectManager.Player.Position)
                    > selectedTarget.LSDistance(ObjectManager.Player.Position) + 20)
                {
                    BadaoMainVariables.E.Cast(selectedTarget);
                }
            }

nextStep:
            if (BadaoPoppyHelper.UseQCombo())
            {
                if (selectedTarget.BadaoIsValidTarget(BadaoMainVariables.Q.Range))
                {
                    if (BadaoMainVariables.Q.Cast(selectedTarget))
                    {
                        BadaoPoppyVariables.QCastTick = Environment.TickCount;
                    }
                }
            }
            if (BadaoPoppyHelper.UseWCombo())
            {
                if (selectedTarget.BadaoIsValidTarget(600))
                {
                    BadaoMainVariables.W.Cast();
                }
            }
        }
Example #7
0
        private static void Game_OnUpdate(EventArgs args)
        {
            if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
            {
                return;
            }
            if (BadaoPoppyHelper.UseRComboKillable())
            {
                if (!BadaoMainVariables.R.IsCharging)
                {
                    var killableTarget = HeroManager.Enemies.FirstOrDefault(x => x.BadaoIsValidTarget(500) &&
                                                                            BadaoMainVariables.R.GetDamage(x) >= x.Health);
                    if (killableTarget != null)
                    {
                        BadaoMainVariables.R.StartCharging();
                    }
                }
                else
                {
                    var killableTarget = HeroManager.Enemies.FirstOrDefault(x => x.BadaoIsValidTarget(500) &&
                                                                            BadaoMainVariables.R.GetDamage(x) >= x.Health);
                    if (killableTarget != null)
                    {
                        BadaoMainVariables.R.Cast(killableTarget.Position);
                    }
                }
            }
            if (BadaoMainVariables.E.IsReady() && Environment.TickCount - BadaoPoppyVariables.QCastTick >= 1250)
            {
                foreach (var hero in HeroManager.Enemies
                         .Where(
                             x => x.BadaoIsValidTarget(BadaoMainVariables.E.Range) &&
                             BadaoPoppyHelper.UseECombo(x)))
                {
                    var predPos = hero.Position.To2D(); //BadaoMainVariables.E.GetPrediction(hero).UnitPosition.To2D();
                    if (BadaoMath.GetFirstWallPoint(predPos, predPos.Extend(ObjectManager.Player.Position.To2D(), -300 - hero.BoundingRadius)) != null)
                    {
                        BadaoMainVariables.E.Cast(hero);
                        goto nextStep;
                    }
                }
            }
            if (BadaoPoppyHelper.UseEComboGap() && Environment.TickCount - BadaoPoppyVariables.QCastTick >= 1250)
            {
                var target = TargetSelector.GetTarget(BadaoMainVariables.E.Range, TargetSelector.DamageType.Physical);
                if (target.BadaoIsValidTarget() && !Orbwalking.InAutoAttackRange(target) &&
                    Prediction.GetPrediction(target, 0.5f).UnitPosition.Distance(ObjectManager.Player.Position)
                    > target.Distance(ObjectManager.Player.Position) + 20)
                {
                    BadaoMainVariables.E.Cast(target);
                }
            }

nextStep:
            if (BadaoPoppyHelper.UseQCombo())
            {
                var target = TargetSelector.GetTarget(BadaoMainVariables.Q.Range, TargetSelector.DamageType.Physical);
                if (target.BadaoIsValidTarget())
                {
                    if (BadaoMainVariables.Q.Cast(target) == Spell.CastStates.SuccessfullyCasted)
                    {
                        BadaoPoppyVariables.QCastTick = Environment.TickCount;
                    }
                }
            }
            if (BadaoPoppyHelper.UseWCombo())
            {
                var target = HeroManager.Enemies.OrderBy(i => i.Distance(ObjectManager.Player.Position))
                             .FirstOrDefault(x => x.BadaoIsValidTarget(600));
                if (target != null)
                {
                    BadaoMainVariables.W.Cast();
                }
            }
        }