Esempio n. 1
0
        public override void killSteal()
        {
            var target = ARAMTargetSelector.getBestTarget(E.Range + 200);

            if (target == null)
            {
                return;
            }
            if (target.Health < GetEDamage(target))
            {
                E.CastIfHitchanceEquals(target, HitChance.Medium, true);
                E.CastIfHitchanceEquals(target, HitChance.High, true);
                return;
            }


            target = TargetSelector.GetTarget(W.Range + 200, TargetSelector.DamageType.Magical);
            if (target == null)
            {
                return;
            }
            if (target.Health < GetWDamage(target))
            {
                var prediction = W.GetPrediction(target);
                if (prediction.Hitchance >= HitChance.High &&
                    prediction.CollisionObjects.Count(h => h.IsEnemy && !h.IsDead && h is Obj_AI_Minion) < 2)
                {
                    W.Cast(prediction.CastPosition);
                    return;
                }
            }
        }
Esempio n. 2
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }

            //if (bomb != null && Q.IsReady() && Player.Instance.CountEnemiesInRange(bomb.Position,(250)>0)
            if (bomb != null && Q.IsReady() && bomb.CountEnemiesInRange(250) > 0)
            {
                Q.Cast();
            }
        }
Esempio n. 3
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }

            if (R.IsReady())
            {
                foreach (var enem in MapControl.enemy_champions.Where(ene => ene.hero.Distance(player) < R.Range))
                {
                    if (R.IsKillable(enem.hero))
                    {
                        R.CastOnUnit(enem.hero);
                        return;
                    }
                }
            }
        }
Esempio n. 4
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }

            if (bomb != null && Q.IsReady() && LeagueSharp.Common.Utility.CountEnemysInRange(bomb.Position, (250)) > 0)
            {
                Q.Cast();
            }
        }
Esempio n. 5
0
        public override void useSpells()
        {
            if (ObjectManager.Player.Spellbook.IsChanneling)
            {
                return;
            }

            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            var obj = EntityManager.Heroes.Allies.Where(i => !i.IsMe && i.IsValidTarget(R.Range, false) && i.HealthPercent < 35 && i.CountEnemiesInRange(E.Range) > 0).OrderBy(i => i.Health).FirstOrDefault();

            if (R.IsReady())
            {
                if (obj != null)
                {
                    R.Cast(obj);
                    Aggresivity.addAgresiveMove(new AgresiveMove(105, 6000, true));
                }
            }
        }
Esempio n. 6
0
        public override void useSpells()
        {
            SetMana();
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 7
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(E.Range);

            if (tar != null)
            {
                useE(tar);
            }
            if (E.IsCharging || eActive)
            {
                return;
            }
            tar = ARAMTargetSelector.getBestTarget(Q.Range);
            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 8
0
        public override void useSpells()
        {
            if (player.IsChannelingImportantSpell())
            {
                return;
            }
            if (W.IsReady())
            {
                if (isBurning() && player.CountEnemiesInRange(450) == 0)
                {
                    W.Cast();
                }
                if (!isBurning() && player.CountEnemiesInRange(450) > 0)
                {
                    W.Cast();
                }
            }

            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 9
0
        public override void useSpells()
        {
            if (E.IsReady() && player.HealthPercent < 35 && player.GetEnemiesInRange(600).Count(ene => !ene.IsDead) > 1)
            {
                E.Cast(ARAMSimulator.fromNex.Position);
            }
            CheckSpells();
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 10
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            if (E.IsReady())
            {
                foreach (var enem in DeathWalker.AllEnemys)
                {
                    useE(enem);
                }
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 11
0
        public override void useE(Obj_AI_Base target)
        {
            if (!E.IsReady())
            {
                return;
            }
            var eTarget = ARAMTargetSelector.getBestTarget(E.Range);

            if (eTarget.IsValidTarget(E.Range))
            {
                if (eTarget.Buffs.Where(buff => buff.DisplayName.ToLower() == "twitchdeadlyvenom").Any(buff => buff.Count > 4))
                {
                    E.Cast();
                    return;
                }
            }

            foreach (
                var hero in
                ObjectManager.Get <Obj_AI_Hero>()
                .Where(
                    hero =>
                    hero.IsValidTarget(E.Range) &&
                    (player.GetSpellDamage(hero, SpellSlot.E) - 10 > hero.Health)))
            {
                E.Cast();
            }
        }
Esempio n. 12
0
        public override void useSpells()
        {
            //var tar = ARAMTargetSelector.getBestTarget(getRivenReach() + 430);
            //doCombo(tar);
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useWSmart(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                UseESmart(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R2.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 13
0
        public override void useSpells()
        {
            if (E.IsReady() && player.CountEnemiesInRange(650) <= 1)
            {
                E.Cast();
            }
            var tarq = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tarq != null)
            {
                useQ(tarq);
            }
            var tarw = ARAMTargetSelector.getBestTarget(W.Range);

            if (tarw != null)
            {
                useW(tarw);
            }
            //var tare = ARAMTargetSelector.getBestTarget(E.Range);
            //if (tare != null) useE(tare);
            var tarr = ARAMTargetSelector.getBestTarget(R.Range);

            if (tarr != null)
            {
                useR(tarr);
            }
        }
Esempio n. 14
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            var enem = TargetSelector.GetTarget(E.Range, DamageType.Mixed, Player.Instance.Position);

            if (E.IsReady())
            //foreach (var enem in Orbwalker.GetTarget())
            {
                useE(enem);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 15
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(550);

            if (tar != null)
            {
                useQ(tar);
            }
            else if (player.HasBuff("Poison Trail"))
            {
                if (Q.IsReady())
                {
                    Q.Cast();
                }
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(300);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 16
0
        public override void useQ(Obj_AI_Base target)
        {
            if (!Q.IsReady())
            {
                return;
            }
            ManaManager();
            if (Farm)
            {
                if (ObjectManager.Player.Mana > RMANA + WMANA + EMANA + 10 && !FishBoneActive)
                {
                    farmQ();
                }
            }
            var t = ARAMTargetSelector.getBestTarget(bonusRange() + 50);

            if (t.IsValidTarget())
            {
                var distance    = GetRealDistance(t);
                var powPowRange = GetRealPowPowRange(t);

                if (!FishBoneActive && (distance > powPowRange))
                {
                    if ((ObjectManager.Player.Mana > RMANA + WMANA + 20 || ObjectManager.Player.GetAutoAttackDamage(t) * 2 > t.Health))
                    {
                        Q.Cast();
                    }
                    else if (Farm && haras() && ObjectManager.Player.Mana > RMANA + WMANA + EMANA + WMANA && distance < bonusRange() + t.BoundingRadius)
                    {
                        Q.Cast();
                    }
                }
            }
            Core.DelayAction(() => Player.IssueOrder(GameObjectOrder.AttackUnit, target), 100);
        }
Esempio n. 17
0
        public override void useSpells()
        {
            if (ObjectManager.Player.Spellbook.IsChanneling)
            {
                return;
            }
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            if (tar != null)
            {
                useW(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 18
0
        public override void useSpells()
        {
            if (player.IsChannelingImportantSpell())
            {
                return;
            }

            var tar = ARAMTargetSelector.getBestTarget(Q1.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(Q2.Range);
            if (tar != null)
            {
                useQ2(tar);
            }
            manageW();
            tar = ARAMTargetSelector.getBestTarget(E2.Range);
            if (tar != null)
            {
                useE2(tar);
            }
        }
Esempio n. 19
0
        public override void useSpells()
        {
            var target  = ARAMTargetSelector.getBestTarget(Player.Instance.GetAutoAttackRange());
            var Etarget = ARAMTargetSelector.getBestTarget(E.Range);
            var RTarget = ARAMTargetSelector.getBestTarget(2000f);

            CatchAxes();

            if (target.IsValidTarget())
            {
                CastQ();
            }
            if (Etarget.IsValidTarget())
            {
                CastE(Etarget);
            }
            if (RTarget.IsValidTarget())
            {
                CastRExecute(RTarget);
            }
            if (RTarget.IsValidTarget())
            {
                RExecute(RTarget);
            }
            if (RTarget.IsValidTarget())
            {
                RMostDamange(RTarget);
            }
        }
Esempio n. 20
0
        public override void useSpells()
        {
            if (player.IsChannelingImportantSpell())
            {
                return;
            }


            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            if (tar != null)
            {
                useE(tar);
            }
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            if (tar != null)
            {
                useR(tar);
            }
        }
Esempio n. 21
0
        private void WhileCastingR()
        {
            var rTarget = ARAMTargetSelector.getBestTarget(R.Range);

            if (rTarget != null)
            {
                //Wait at least 0.6f if the target is going to die or if the target is to far away
                if (rTarget.Health - R.GetDamage(rTarget) < 0)
                {
                    if (Utils.TickCount - RCharge.CastT <= 700)
                    {
                        return;
                    }
                }

                if ((RCharge.Index != 0 && rTarget.Distance(RCharge.Position) > 1000))
                {
                    if (Utils.TickCount - RCharge.CastT <= Math.Min(2500, rTarget.Distance(RCharge.Position) - 1000))
                    {
                        return;
                    }
                }

                R.Cast(rTarget, true);
            }
        }
Esempio n. 22
0
        public override void useSpells()
        {
            var target  = ARAMTargetSelector.getBestTarget(DeathWalker.getTargetSearchDist());
            var Etarget = ARAMTargetSelector.getBestTarget(E.Range);
            var RTarget = ARAMTargetSelector.getBestTarget(2000f);

            CatchAxes();

            if (target.IsValidTarget())
            {
                CastQ();
            }
            if (Etarget.IsValidTarget())
            {
                CastE(Etarget);
            }
            if (RTarget.IsValidTarget())
            {
                CastRExecute(RTarget);
            }
            if (RTarget.IsValidTarget())
            {
                RExecute(RTarget);
            }
            if (RTarget.IsValidTarget())
            {
                RMostDamange(RTarget);
            }
        }
Esempio n. 23
0
 public override void useSpells()
 {
     try
     {
         if (player.IsChannelingImportantSpell())
         {
             return;
         }
         var tar = ARAMTargetSelector.getBestTarget(Q.Range);
         if (tar != null)
         {
             useQ(tar);
         }
         tar = ARAMTargetSelector.getBestTarget(E.Range);
         if (tar != null)
         {
             useE(tar);
         }
         tar = ARAMTargetSelector.getBestTarget(W.Range);
         if (tar != null)
         {
             useW(tar);
         }
         // tar = ARAMTargetSelector.getBestTarget(R.Range);
         //if (tar != null) useR(tar);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
 }
Esempio n. 24
0
 public override void useW(Obj_AI_Base target)
 {
     if (!W.IsReady() || target == null)
     {
         return;
     }
     CastW(ARAMTargetSelector.getBestTarget(W.Range), 35);
 }
Esempio n. 25
0
        private void LogicR()
        {
            var t = ARAMTargetSelector.getBestTarget(R.Range);

            if (t.IsValidTarget(R.Range))
            {
                var rDmg = R.GetDamage(t) + (W.GetDamage(t) * 10);

                if (player.CountEnemiesInRange(700) == 0 && t.CountAlliesInRange(400) == 0)
                {
                    var tDis = player.Distance(t.ServerPosition);
                    if (rDmg * 7 > t.Health && tDis < 800)
                    {
                        R.Cast(t, true, true);
                        RCastTime = Game.Time;
                    }
                    else if (rDmg * 6 > t.Health && tDis < 900)
                    {
                        R.Cast(t, true, true);
                        RCastTime = Game.Time;
                    }
                    else if (rDmg * 5 > t.Health && tDis < 1000)
                    {
                        R.Cast(t, true, true);
                        RCastTime = Game.Time;
                    }
                    else if (rDmg * 4 > t.Health && tDis < 1100)
                    {
                        R.Cast(t, true, true);
                        RCastTime = Game.Time;
                    }
                    else if (rDmg * 3 > t.Health && tDis < 1200)
                    {
                        R.Cast(t, true, true);
                        RCastTime = Game.Time;
                    }
                    else if (rDmg > t.Health && tDis < 1300)
                    {
                        R.Cast(t, true, true);
                        RCastTime = Game.Time;
                    }
                    return;
                }
                else if (rDmg * 8 > t.Health && t.CountEnemiesInRange(300) > 2 && player.CountEnemiesInRange(700) == 0)
                {
                    R.Cast(t, true, true);
                    RCastTime = Game.Time;
                    return;
                }
                else if (rDmg * 8 > t.Health && player.CountEnemiesInRange(600) == 0)
                {
                    R.Cast(t, true, true);
                    RCastTime = Game.Time;
                    return;
                }
            }
        }
Esempio n. 26
0
 public override void useSpells()
 {
     var tar = ARAMTargetSelector.getBestTarget(1010);
     useQ(tar);
     tar = ARAMTargetSelector.getBestTarget(E.Range);
     if (tar != null) useE(tar);
     tar = ARAMTargetSelector.getBestTarget(W.Range);
     if (tar != null) useW(tar);
     tar = ARAMTargetSelector.getBestTarget(R.Range);
     if (tar != null) useR(tar);
 }
Esempio n. 27
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            useQ(tar);
            tar = ARAMTargetSelector.getBestTarget(W.Range);
            useW(tar);
            tar = ARAMTargetSelector.getBestTarget(E.Range);
            //useE(tar);
            tar = ARAMTargetSelector.getBestTarget(R.Range);
            useR(tar);
        }
Esempio n. 28
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(1010);

            if (tar == null)
            {
                return;
            }
            useQ(tar);
            useE(tar);
            useR(tar);
        }
Esempio n. 29
0
        public override void useSpells()
        {
            if (E.IsReady() && player.CountEnemiesInRange(650) > 0)
            {
                E.Cast();
            }
            var tar = ARAMTargetSelector.getBestTarget(Q.Range);

            if (tar != null)
            {
                useQ(tar);
            }
        }
Esempio n. 30
0
        public override void useSpells()
        {
            var tar = ARAMTargetSelector.getBestTarget(Q.Range + 800);

            if (tar != null)
            {
                Combo();
            }
            else
            {
                Farm();
            }
        }