Exemplo n.º 1
0
        static void Harass(AIHeroClient target)
        {
            if (SorakaMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                return;
            }
            if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Harass.UseQ") && Player.ManaPercent > Misc.GetSlider("Harass.Mana") && target.Distance(Player) < Spells[SpellSlot.Q].Range)
            {
                Spells[SpellSlot.Q].SPredictionCast(target, Misc.GetHitChance("Hitchance.Q"));

                /*
                 * var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
                 * {
                 *      Spells[SpellSlot.Q].Cast(pred.CastPosition);
                 * }
                 */
            }
            if (Spells[SpellSlot.E].IsReady() && Misc.Active("Harass.UseE") && target.Distance(Player) < Spells[SpellSlot.E].Range)
            {
                Spells[SpellSlot.E].SPredictionCast(target, Misc.GetHitChance("Hitchance.E"), (byte)Misc.GetSlider("Harass.Eminhit"));

                /*
                 * var pred = Spells[SpellSlot.E].GetPrediction(target, true);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
                 * {
                 *      Spells[SpellSlot.E].Cast(pred.CastPosition);
                 * }
                 */
            }
        }
Exemplo n.º 2
0
        static void Harass(Obj_AI_Hero target)
        {
            if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Harass.UseQ") && Player.ManaPercent > Misc.GetSlider("Harass.Mana"))
            {
                Spells[SpellSlot.Q].SPredictionCast(target, Misc.GetHitChance("Hitchance.Q"));

                /*
                 * var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
                 * {
                 *      Spells[SpellSlot.Q].Cast(pred.CastPosition);
                 * }
                 */
            }
            if (Spells[SpellSlot.E].IsReady() && Misc.Active("Harass.UseE"))
            {
                Spells[SpellSlot.E].SPredictionCast(target, Misc.GetHitChance("Hitchance.E"), (byte)Misc.GetSlider("Harass.Eminhit"));

                /*
                 * var pred = Spells[SpellSlot.E].GetPrediction(target, true);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
                 * {
                 *      Spells[SpellSlot.E].Cast(pred.CastPosition);
                 * }
                 */
            }
        }
Exemplo n.º 3
0
        private static void Combo(AIHeroClient target)
        {
            if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Combo.UseQ") && target.Distance(Player) < Spells[SpellSlot.Q].Range)
            {
                Spells[SpellSlot.Q].SPredictionCast(target, Misc.GetHitChance("Hitchance.Q"));

                /*
                 * var pred = Spells[SpellSlot.Q].GetPrediction(target);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
                 * {
                 *      Spells[SpellSlot.Q].Cast(pred.CastPosition);
                 * }
                 */
            }


            if (Spells[SpellSlot.E].IsReady() && Misc.Active("Combo.UseE") && target.Distance(Player) < Spells[SpellSlot.E].Range)
            {
                Spells[SpellSlot.E].SPredictionCast(target, Misc.GetHitChance("Hitchance.E"));

                /*
                 * var pred = Spells[SpellSlot.E].GetPrediction(target);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
                 * {
                 *       Spells[SpellSlot.E].Cast(pred.CastPosition);
                 * }
                 */
            }
        }
Exemplo n.º 4
0
        private static void Combo(Obj_AI_Hero target)
        {
            if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Combo.UseQ"))
            {
                Spells[SpellSlot.Q].SPredictionCast(target, Misc.GetHitChance("Hitchance.Q"));

                /*
                 * var pred = Spells[SpellSlot.Q].GetPrediction(target);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
                 * {
                 *      Spells[SpellSlot.Q].Cast(pred.CastPosition);
                 * }
                 */
            }


            if (Spells[SpellSlot.E].IsReady() && Misc.Active("Combo.UseE"))
            {
                Spells[SpellSlot.E].SPredictionCast(target, Misc.GetHitChance("Hitchance.E"));

                /*
                 * var pred = Spells[SpellSlot.E].GetPrediction(target);
                 * if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
                 * {
                 *       Spells[SpellSlot.E].Cast(pred.CastPosition);
                 * }
                 */
            }
        }
Exemplo n.º 5
0
        private static void Killsteal()
        {
            if (!Misc.Active("Killsteal"))
            {
                return;
            }

            var targets = HeroManager.Enemies.Where(x => x.IsValidTarget() && !x.IsInvulnerable & !x.IsZombie);

            if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Killsteal.UseQ"))
            {
                Obj_AI_Hero qtarget =
                    targets.Where(x => x.Distance(Player.Position) < Spells[SpellSlot.Q].Range)
                    .MinOrDefault(x => x.Health);
                if (qtarget != null)
                {
                    var qdmg = Player.GetSpellDamage(qtarget, SpellSlot.Q);
                    if (qtarget.Health < qdmg)
                    {
                        var pred = Spells[SpellSlot.Q].GetPrediction(qtarget);
                        if (pred != null && pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
                        {
                            Spells[SpellSlot.Q].Cast(pred.CastPosition);
                            return;
                        }
                    }
                }

                if (Spells[SpellSlot.E].IsReady() && Misc.Active("Killsteal.UseE"))
                {
                    Obj_AI_Hero etarget =
                        targets.Where(x => x.Distance(Player.Position) < Spells[SpellSlot.E].Range)
                        .MinOrDefault(x => x.Health);
                    if (etarget != null)
                    {
                        var edmg = Player.GetSpellDamage(etarget, SpellSlot.E);
                        if (etarget.Health < edmg)
                        {
                            Spells[SpellSlot.E].Cast(etarget);
                        }
                    }
                }

                if (Spells[IgniteSlot].IsReady() && Misc.Active("Killsteal.UseIgnite"))
                {
                    var targ =
                        HeroManager.Enemies.FirstOrDefault(x => x.IsValidTarget() &&
                                                           Vector3.Distance(Player.ServerPosition, x.ServerPosition) <
                                                           Spells[IgniteSlot].Range &&
                                                           x.Health <
                                                           (Player.GetSummonerSpellDamage(x, Damage.SummonerSpell.Ignite)));
                    if (targ != null)
                    {
                        Spells[IgniteSlot].Cast(targ);
                    }
                }
            }
        }
Exemplo n.º 6
0
 static void Harass(Obj_AI_Hero target)
 {
     if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Harass.UseQ") && Player.ManaPercent > Misc.GetSlider("Harass.Mana"))
     {
         var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
         if (pred.Hitchance > Misc.GetHitChance("Hitchance.Q"))
         {
             Spells[SpellSlot.Q].Cast(pred.CastPosition);
         }
     }
     if (Spells[SpellSlot.E].IsReady() && Misc.Active("Harass.UseE"))
     {
         var pred = Spells[SpellSlot.E].GetPrediction(target, true);
         if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
         {
             Spells[SpellSlot.E].Cast(pred.CastPosition);
         }
     }
 }
Exemplo n.º 7
0
        private static void Combo(Obj_AI_Hero target)
        {
            if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Combo.UseQ") && target.Distance(Player) < Spells[SpellSlot.Q].Range)
            {
                var pred = Spells[SpellSlot.Q].GetPrediction(target);
                if (pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
                {
                    Spells[SpellSlot.Q].Cast(pred.CastPosition);
                }
            }


            if (Spells[SpellSlot.E].IsReady() && Misc.Active("Combo.UseE") && target.Distance(Player) < Spells[SpellSlot.E].Range)
            {
                var pred = Spells[SpellSlot.E].GetPrediction(target);
                if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
                {
                    Spells[SpellSlot.E].Cast(pred.CastPosition);
                }
            }
        }
Exemplo n.º 8
0
 static void Harass(Obj_AI_Hero target)
 {
     if (SorakaMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
     {
         return;
     }
     if (Spells[SpellSlot.Q].IsReady() && Misc.Active("Harass.UseQ") && Player.ManaPercent > Misc.GetSlider("Harass.Mana") && target.Distance(Player) < Spells[SpellSlot.Q].Range)
     {
         var pred = Spells[SpellSlot.Q].GetPrediction(target, true);
         if (pred.Hitchance >= Misc.GetHitChance("Hitchance.Q"))
         {
             Spells[SpellSlot.Q].Cast(pred.CastPosition);
         }
     }
     if (Spells[SpellSlot.E].IsReady() && Misc.Active("Harass.UseE") && target.Distance(Player) < Spells[SpellSlot.E].Range)
     {
         var pred = Spells[SpellSlot.E].GetPrediction(target, true);
         if (pred.Hitchance >= Misc.GetHitChance("Hitchance.E"))
         {
             Spells[SpellSlot.E].Cast(pred.CastPosition);
         }
     }
 }