예제 #1
0
        public static void Laneclear()
        {
            var minions = MinionManager.GetMinions(Player.AttackRange + 380);

            if (minions == null || Player.IsWindingUp || (MenuConfig.LaneEnemy && ObjectManager.Player.CountEnemiesInRange(1500) > 0))
            {
                return;
            }

            if (minions.Count <= 2)
            {
                return;
            }

            foreach (var m in minions)
            {
                if (m.UnderTurret(true))
                {
                    return;
                }

                if (Spells.E.IsReady() && MenuConfig.LaneE)
                {
                    BackgroundData.CastE(m);
                }

                if (MenuConfig.LaneQFast && m.Health < Spells.Q.GetDamage(m) && Spells.Q.IsReady())
                {
                    BackgroundData.CastQ(m);
                }

                else if (Spells.W.IsReady() &&
                         MenuConfig.LaneW &&
                         !Player.IsWindingUp &&
                         !(m.Health > Spells.W.GetDamage(m)) &&
                         BackgroundData.InRange(m))
                {
                    BackgroundData.CastW(m);
                }
            }
        }
예제 #2
0
        public static void Laneclear()
        {
            var minions = EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.Position, Player.AttackRange + 380).ToList();

            if (minions == null || (MenuConfig.LaneEnemy && Player.CountEnemiesInRange(1500) > 0))// || Player.IsWindingUp)
            {
                return;
            }

            if (minions.Count <= 2)
            {
                return;
            }

            foreach (var m in minions)
            {
                if (m.IsUnderEnemyturret())
                {
                    return;
                }
                if (Spells.E.IsReady() && MenuConfig.LaneE)
                {
                    BackgroundData.CastE(m);
                }
                if (MenuConfig.LaneQFast && m.Health < RivenSharp.Managers.DamageManager.GetQDamage(m) && Spells.Q.IsReady())
                {
                    BackgroundData.CastQ(m);
                }
                else if (Spells.W.IsReady() &&
                         MenuConfig.LaneW
                         //&& !Player.IsWindingUp
                         && !(m.Health > RivenSharp.Managers.DamageManager.GetWDamage(m)) &&
                         BackgroundData.InRange(m))
                {
                    BackgroundData.CastW(m);
                }
            }
        }
예제 #3
0
        public static void Burst()
        {
            if (Player.Spellbook.CanUseSpell(Spells.Flash) == SpellState.Ready && MenuConfig.AlwaysF)
            {
                var selectedTarget = TargetSelector.GetTarget(Player.AttackRange + 625, DamageType.Physical);

                if (selectedTarget == null ||
                    Player.Distance(selectedTarget.Position) > (Player.AttackRange + 625) ||
                    Player.Distance(selectedTarget.Position) < Player.AttackRange ||
                    (MenuConfig.Flash && selectedTarget.Health > Dmg.GetComboDamage(selectedTarget) && !Spells.R.IsReady()) ||
                    (!MenuConfig.Flash || (!Spells.R.IsReady() || !Spells.W.IsReady()))
                    )
                {
                    return;
                }

                Usables.CastYoumoo();
                BackgroundData.CastE(selectedTarget);

                Player.Spellbook.CastSpell(SpellSlot.R, selectedTarget);
                EloBuddy.SDK.Core.DelayAction(() => BackgroundData.FlashW(selectedTarget), 170);
            }
            else
            {
                var target = TargetSelector.GetTarget(Player.AttackRange + 360, DamageType.Physical);

                if (target == null)
                {
                    return;
                }

                if (!MenuConfig.AlwaysF)
                {
                    Usables.CastYoumoo();
                }

                if (Spells.R.IsReady() && Spells.R.Name == IsSecondR && Qstack > 1)
                {
                    var pred = Spells.R.GetPrediction(target);

                    if (pred.HitChance == EloBuddy.SDK.Enumerations.HitChance.High)
                    {
                        Player.Spellbook.CastSpell(SpellSlot.R, pred.CastPosition);
                    }
                }

                if (Spells.E.IsReady())
                {
                    BackgroundData.CastE(target);
                    EloBuddy.SDK.Core.DelayAction(Usables.CastHydra, 10);
                    //Spells.E.Cast(target.Position);
                }

                if (Spells.R.IsReady() && Spells.R.Name == IsFirstR)
                {
                    Player.Spellbook.CastSpell(SpellSlot.R, target);
                    //Spells.R.Cast(target);
                }

                if (!Spells.W.IsReady() || !BackgroundData.InRange(target))
                {
                    return;
                }

                BackgroundData.CastW(target);
                BackgroundData.DoubleCastQ(target);
            }
        }