Exemplo n.º 1
0
        private static void LogicE()
        {
            var t = TargetSelector.GetTarget(1300, DamageType.Physical);

            if (getCheckBoxItem(eMenu, "EAntiMelee"))
            {
                if (Program.Enemies.Any(target => target.IsValidTarget(1000) && target.IsMelee && Player.LSDistance(LeagueSharp.Common.Prediction.GetPrediction(target, 0.2f).CastPosition) < 250))
                {
                    var dashPos = Dash.CastDash(true);
                    if (!dashPos.IsZero)
                    {
                        E.Cast(dashPos);
                    }
                }
            }

            if (t.IsValidTarget() && Program.Combo && getCheckBoxItem(eMenu, "EKsCombo") && Player.HealthPercent > 40 && t.LSDistance(Game.CursorPos) + 300 < t.Position.LSDistance(Player.Position) && !SebbyLib.Orbwalking.InAutoAttackRange(t) && !Player.UnderTurret(true) && (Game.Time - OverKill > 0.3))
            {
                var dashPosition = Player.Position.LSExtend(Game.CursorPos, E.Range);

                if (dashPosition.CountEnemiesInRange(900) < 3)
                {
                    var dmgCombo = 0f;

                    if (t.IsValidTarget(950))
                    {
                        dmgCombo = (float)Player.GetAutoAttackDamage(t) + E.GetDamage(t);
                    }

                    if (Q.IsReady() && Player.Mana > QMANA + EMANA && Q.WillHit(dashPosition, Q.GetPrediction(t).UnitPosition))
                    {
                        dmgCombo = Q.GetDamage(t);
                    }

                    if (W.IsReady() && Player.Mana > QMANA + EMANA + WMANA)
                    {
                        dmgCombo += W.GetDamage(t);
                    }

                    if (dmgCombo > t.Health && OktwCommon.ValidUlt(t))
                    {
                        E.Cast(dashPosition);
                        OverKill = Game.Time;
                        Program.debug("E ks combo");
                    }
                }
            }
        }
Exemplo n.º 2
0
        private void LogicE()
        {
            var t = TargetSelector.GetTarget(1300, TargetSelector.DamageType.Physical);

            if (Config.Item("EAntiMelee", true).GetValue <bool>())
            {
                if (HeroManager.Enemies.Any(target => target.IsValidTargetLS(1000) && target.IsMelee && Player.Distance(LeagueSharp.Common.Prediction.GetPrediction(target, 0.2f).CastPosition) < 250))
                {
                    var dashPos = Dash.CastDash(true);
                    if (!dashPos.IsZero)
                    {
                        E.Cast(dashPos);
                    }
                }
            }

            if (t.IsValidTargetLS() && Program.Combo && Config.Item("EKsCombo", true).GetValue <bool>() && Player.HealthPercent > 40 && t.Distance(Game.CursorPos) + 300 < t.Position.Distance(Player.Position) && !EloBuddy.Player.Instance.IsInAutoAttackRange(t) && !Player.UnderTurret(true) && (Game.Time - OverKill > 0.3))
            {
                var dashPosition = Player.Position.Extend(Game.CursorPos, E.Range).To3DWorld();

                if (dashPosition.CountEnemiesInRange(900) < 3)
                {
                    var dmgCombo = 0f;

                    if (t.IsValidTargetLS(950))
                    {
                        dmgCombo = (float)Player.GetAutoAttackDamage(t) + E.GetDamage(t);
                    }

                    if (Q.IsReady() && Player.Mana > QMANA + EMANA && Q.WillHit(dashPosition, Q.GetPrediction(t).UnitPosition))
                    {
                        dmgCombo = Q.GetDamage(t);
                    }

                    if (W.IsReady() && Player.Mana > QMANA + EMANA + WMANA)
                    {
                        dmgCombo += W.GetDamage(t);
                    }

                    if (dmgCombo > t.Health && OktwCommon.ValidUlt(t))
                    {
                        E.Cast(dashPosition);
                        OverKill = Game.Time;
                        Program.debug("E ks combo");
                    }
                }
            }
        }
Exemplo n.º 3
0
        private static void LogicE()
        {
            var t            = TargetSelector.GetTarget(1300, DamageType.Physical);
            var dashPosition = Player.Position.Extend(Game.CursorPos, E.Range);

            if (Program.Enemies.Any(target => target.IsValidTarget(300) && target.IsMelee))
            {
                var dashPos = Dash.CastDash(true);
                if (!dashPos.IsZero)
                {
                    E.Cast(dashPos);
                }
            }

            if (t.IsValidTarget() && Player.HealthPercent > 40 && !Player.UnderTurret(true) &&
                (Game.Time - OverKill > 0.3) && dashPosition.CountEnemiesInRange(900) < 3)
            {
                if (t.Distance(Game.CursorPos) + 300 < t.Position.Distance(Player.Position) &&
                    !Orbwalking.InAutoAttackRange(t))
                {
                    var dmgCombo = 0f;

                    if (t.IsValidTarget(950))
                    {
                        dmgCombo = Player.GetAutoAttackDamage(t) + E.GetDamage(t);
                    }

                    if (Q.IsReady() && Player.Mana > QMANA + EMANA &&
                        Q.WillHit(dashPosition.To3D(), Q.GetPrediction(t).UnitPosition))
                    {
                        dmgCombo = Q.GetDamage(t);
                    }

                    if (W.IsReady() && Player.Mana > QMANA + EMANA + WMANA)
                    {
                        dmgCombo += W.GetDamage(t);
                    }

                    if (dmgCombo > t.Health && OktwCommon.ValidUlt(t))
                    {
                        E.Cast(dashPosition);
                        OverKill = Game.Time;
                        Program.debug("E ks combo");
                    }
                }
            }
        }
Exemplo n.º 4
0
        public static Tuple<int, List<Obj_AI_Hero>> GetHits(Spell spell)
        {
            var GetenemysHit = ObjectManager.Get<Obj_AI_Hero>().Where(enemy => enemy.IsValidTarget() && spell.WillHit(enemy, R.GetPrediction(enemy, true).CastPosition)).ToList();

            return new Tuple<int, List<Obj_AI_Hero>>(GetenemysHit.Count, GetenemysHit);
        }
Exemplo n.º 5
0
 public static Tuple<int, List<Obj_AI_Hero>> GetHits(Spell spell)
 {
     var hits = new List<Obj_AI_Hero>();
     var range = spell.Range * spell.Range;
     foreach (var enemy in HeroManager.Enemies.Where(h => h.IsValidTarget() && BallManager.BallPosition.Distance(h.ServerPosition, true) < range))
     {
         if (spell.WillHit(enemy, BallManager.BallPosition) && BallManager.BallPosition.Distance(enemy.ServerPosition, true) < spell.Width * spell.Width)
         {
             hits.Add(enemy);
         }
     }
     return new Tuple<int,List<Obj_AI_Hero>>(hits.Count, hits);
 }
Exemplo n.º 6
0
 private Tuple<int, List<Obj_AI_Hero>> GetHits(Spell spell)
 {
     try
     {
         var hits = new List<Obj_AI_Hero>();
         foreach (var enemy in
             GameObjects.EnemyHeroes.Where(
                 h => h.IsValidTarget() && Ball.Position.Distance(h.Position, true) < spell.Range * spell.Range)
                 .Where(
                     enemy =>
                         spell.WillHit(enemy, Ball.Position) &&
                         Ball.Position.Distance(enemy.ServerPosition, true) < spell.Width * spell.Width))
         {
             if (enemy.IsDashing() && enemy.Distance(Ball.Position) >= 100f)
             {
                 if (enemy.Position.Distance(Ball.Position) >
                     enemy.GetDashInfo().EndPos.Distance(Ball.Position) - 50f)
                 {
                     hits.Add(enemy);
                 }
             }
             else
             {
                 hits.Add(enemy);
             }
         }
         return new Tuple<int, List<Obj_AI_Hero>>(hits.Count, hits);
     }
     catch (Exception ex)
     {
         Global.Logger.AddItem(new LogItem(ex));
     }
     return new Tuple<int, List<Obj_AI_Hero>>(0, null);
 }
Exemplo n.º 7
0
 public static bool SmiteCollision(Obj_AI_Hero Target, Spell Skill)
 {
     if (!SmiteReady()) return false;
     var ListCol = Skill.GetPrediction(Target).CollisionObjects.Where(i => IsValid(i, Skill.Range) && Skill.WillHit(i.Position, Target.Position, (int)i.BoundingRadius));
     if (Skill.IsInRange(Target.Position) && ListCol.Count() == 1)
     {
         if (ListCol.First() is Obj_AI_Minion && CastSmite(ListCol.First()))
         {
             Skill.Cast(Target.Position);
             return true;
         }
     }
     return false;
 }