Exemplo n.º 1
0
        private void OnUpdate(EventArgs args)
        {
            if (Minion == null ||
                !CheckGuardians() ||
                (Menu.Item("Lane.E.Turret").GetValue <bool>() && (dashPos.DashEndPosition(Minion, spell.Spell.Range).UnderTurret(true) || Minion.UnderTurret(true))) ||
                (Menu.Item("Lane.E.Enemies").GetValue <Slider>().Value < dashPos.DashEndPosition(Minion, spell.Spell.Range).CountEnemiesInRange(500)) ||
                (Menu.Item("Lane.E.Killable").GetValue <bool>() && Minion.Health > spell.Spell.GetDamage(Minion)))
            {
                return;
            }

            spell.Spell.CastOnUnit(Minion);
        }
Exemplo n.º 2
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || !CheckGuardians())
            {
                return;
            }

            if (q3Spell.Active)
            {
                var pred = q3Spell.Spell.GetPrediction(Target, true);

                if (ObjectManager.Player.IsDashing() &&
                    Minion != null &&
                    (dashPos.DashEndPosition(Minion, 475).Distance(pred.UnitPosition) > ObjectManager.Player.AttackRange ||
                     dashPos.DashEndPosition(Target, 475).Distance(pred.UnitPosition) > ObjectManager.Player.AttackRange))
                {
                    return;
                }

                switch (Menu.Item("Hitchance").GetValue <StringList>().SelectedIndex)
                {
                case 0:
                    if (pred.Hitchance >= HitChance.Medium)
                    {
                        q3Spell.Spell.Cast(pred.CastPosition);
                    }
                    break;

                case 1:
                    if (pred.Hitchance >= HitChance.High)
                    {
                        q3Spell.Spell.Cast(pred.CastPosition);
                    }
                    break;

                case 2:
                    if (pred.Hitchance >= HitChance.VeryHigh)
                    {
                        q3Spell.Spell.Cast(pred.CastPosition);
                    }
                    break;
                }
            }
            else
            {
                qSpell.Spell.Cast(Target);
            }
        }
Exemplo n.º 3
0
        private void OnUpdate(EventArgs args)
        {
            if (!Menu.Item("Flee.Keybind").GetValue <KeyBind>().Active)
            {
                return;
            }

            EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);

            if (Menu.Item("Flee.Turret").GetValue <bool>() && Minion != null && dashPos.DashEndPosition(Minion, 475).UnderTurret(true))
            {
                return;
            }

            if (Mob != null)
            {
                foreach (var m in Mob)
                {
                    var wallPoint = wall.FirstWallPoint(ObjectManager.Player.Position, dashPos.DashEndPosition(m, spell.Spell.Range));

                    if (wall.IsWallDash(wallPoint, spell.Spell.Range))
                    {
                        spell.Spell.CastOnUnit(m);
                    }
                }
            }

            if (Minion == null)
            {
                return;
            }

            spell.Spell.CastOnUnit(Minion);
        }
Exemplo n.º 4
0
        private void OnUpdate(EventArgs args)
        {
            if (Minion == null || !CheckGuardians())
            {
                return;
            }

            foreach (var m in Minion)
            {
                if (ObjectManager.Player.IsDashing() && !qSpell.EqRange(dashPos.DashEndPosition(m, 475)) || m.Health > qSpell.GetDamage(m))
                {
                    return;
                }

                if (q3Spell.Active)
                {
                    var pred = q3Spell.Spell.GetLineFarmLocation(Minion);

                    if (ObjectManager.Player.IsDashing() && (m.Health < qSpell.GetDamage(m) || !qSpell.EqRange(dashPos.DashEndPosition(m, 475))))
                    {
                        return;
                    }

                    if (pred.MinionsHit >= Menu.Item("LhQ3").GetValue <Slider>().Value)
                    {
                        q3Spell.Spell.Cast(pred.Position);
                    }
                }
                else
                {
                    qSpell.Spell.Cast(m);
                }
            }
        }
Exemplo n.º 5
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null ||
                !CheckGuardians() ||
                (Menu.Item("Yasuo.Harass.E.Mouse").GetValue <bool>() && Minion.Distance(Game.CursorPos) > Menu.Item("Yasuo.Harass.E.Radius").GetValue <Slider>().Value) ||
                (Menu.Item("Yasuo.Harass.E.Turret").GetValue <bool>() && dashPos.DashEndPosition(Target, spell.Spell.Range).UnderTurret(true)) ||
                (Menu.Item("Yasuo.Harass.E.Enemies").GetValue <Slider>().Value < ObjectManager.Player.CountEnemiesInRange(1000)))
            {
                return;
            }

            spell.Spell.CastOnUnit(Minion ?? Target);
        }
Exemplo n.º 6
0
        private void OnUpdate(EventArgs args)
        {
            if (Minion == null ||
                !CheckGuardians() ||
                (Menu.Item("LasthitTurret").GetValue <bool>() && dashPos.DashEndPosition(Minion, spell.Spell.Range).UnderTurret(true)) ||
                (Menu.Item("LasthitEnemies").GetValue <Slider>().Value < ObjectManager.Player.CountEnemiesInRange(750)) ||
                Minion.Health > spell.Spell.GetDamage(Minion))
            {
                return;
            }

            spell.Spell.CastOnUnit(Minion);
        }
Exemplo n.º 7
0
        public void OnDraw(EventArgs args)
        {
            if (ObjectManager.Player.IsDead || Minion == null)
            {
                return;
            }

            Render.Circle.DrawCircle(
                Minion.Position,
                Minion.BoundingRadius,
                spell.Spell.IsReady() ? Color.Cyan : Color.DarkSlateGray);

            Render.Circle.DrawCircle(
                dashPos.DashEndPosition(Minion, 475),
                Minion.BoundingRadius,
                spell.Spell.IsReady() ? Color.White : Color.DarkSlateGray);
        }
Exemplo n.º 8
0
        private void OnUpdate(EventArgs args)
        {
            if (Target == null || !CheckGuardians() ||
                (Menu.Item("CTurret").GetValue <bool>() && dashPos.DashEndPosition(Target, spell.Spell.Range).UnderTurret(true)) ||
                (Menu.Item("CEnemies").GetValue <Slider>().Value < ObjectManager.Player.CountEnemiesInRange(1000)))
            {
                return;
            }

            if (Minion != null && ObjectManager.Player.Position.Distance(Target.Position) > 85)
            {
                spell.Spell.CastOnUnit(Minion);
            }
            else
            {
                spell.Spell.CastOnUnit(Target);
            }
        }
Exemplo n.º 9
0
        private void OnUpdate(EventArgs args)
        {
            if (Mob == null || !CheckGuardians())
            {
                return;
            }

            foreach (var m in Mob)
            {
                var wallPoint = wall.FirstWallPoint(ObjectManager.Player.Position, dashPos.DashEndPosition(m, spell.Spell.Range));

                if (wall.IsWallDash(wallPoint, 475))
                {
                    return;
                }

                spell.Spell.CastOnUnit(m);
            }
        }
Exemplo n.º 10
0
        public void OnDraw(EventArgs args)
        {
            if (ObjectManager.Player.IsDead || Minion == null)
            {
                return;
            }

            Render.Circle.DrawCircle(
                Minion.Position,
                Minion.BoundingRadius,
                spell.Spell.IsReady() ? Color.Cyan : Color.DarkSlateGray);

            if (Menu.Item("Path").GetValue <bool>())
            {
                Render.Circle.DrawCircle(
                    dashPos.DashEndPosition(Minion, 475),
                    25,
                    spell.Spell.IsReady()
                ? Color.White
                : Color.DarkSlateGray);

                Drawing.DrawLine(Drawing.WorldToScreen(Minion.Position), Drawing.WorldToScreen(dashPos.DashEndPosition(Minion, 475)), 2, Color.White);
            }
        }
Exemplo n.º 11
0
        private void OnUpdate(EventArgs args)
        {
            if (Minion == null || !CheckGuardians())
            {
                return;
            }

            foreach (var m in Minion)
            {
                if (q3Spell.Active)
                {
                    var pred = q3Spell.Spell.GetPrediction(m, true);

                    if (ObjectManager.Player.IsDashing() && (m.Health < qSpell.GetDamage(m) || dashPos.DashEndPosition(m, 475).Distance(pred.UnitPosition) > ObjectManager.Player.AttackRange))
                    {
                        return;
                    }

                    if (Menu.Item("LQ3").GetValue <Slider>().Value < pred.AoeTargetsHitCount)
                    {
                        return;
                    }

                    switch (Menu.Item("LHitchance").GetValue <StringList>().SelectedIndex)
                    {
                    case 0:
                        if (pred.Hitchance >= HitChance.Medium)
                        {
                            q3Spell.Spell.Cast(pred.CastPosition);
                        }
                        break;

                    case 1:
                        if (pred.Hitchance >= HitChance.High)
                        {
                            q3Spell.Spell.Cast(pred.CastPosition);
                        }
                        break;

                    case 2:
                        if (pred.Hitchance >= HitChance.VeryHigh)
                        {
                            q3Spell.Spell.Cast(pred.CastPosition);
                        }
                        break;
                    }
                }
                else
                {
                    qSpell.Spell.Cast(m);
                }
            }
        }
Exemplo n.º 12
0
        private void OnUpdate(EventArgs args)
        {
            if (!CheckGuardians() ||
                (Menu.Item("Turret").GetValue <bool>() && Minion.UnderTurret(true)) ||
                (Menu.Item("Enemies").GetValue <Slider>().Value < ObjectManager.Player.CountEnemiesInRange(750)) ||
                !Menu.Item("Keybind").GetValue <KeyBind>().Active)
            {
                return;
            }

            EloBuddy.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);

            if (Mob != null)
            {
                foreach (var m in Mob)
                {
                    var wallPoint = wall.FirstWallPoint(ObjectManager.Player.Position, dashPos.DashEndPosition(m, spell.Spell.Range));

                    if (wall.IsWallDash(wallPoint, spell.Spell.Range))
                    {
                        spell.Spell.CastOnUnit(m);
                    }
                }
            }

            if (Minion == null)
            {
                return;
            }

            spell.Spell.CastOnUnit(Minion);
        }