示例#1
0
 private static void OnInterruptableTarget(object obj, Events.InterruptableTargetEventArgs args)
 {
     if (MenuWrapper.Misc.RInterrupt.Value && R.IsReady() && args.DangerLevel >= DangerLevel.Medium && args.Sender.DistanceToPlayer() < 1200)
     {
         R.Cast(args.Sender.Position);
     }
 }
示例#2
0
文件: Caitlyn.cs 项目: riwalry1/AIO
        /// <summary>
        ///     Called on interruptable spell.
        /// </summary>
        /// <param name="sender">The object.</param>
        /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
        public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
        {
            if (Invulnerable.Check(args.Sender, DamageType.Magical, false))
            {
                return;
            }

            if (Vars.E.IsReady() &&
                args.Sender.IsValidTarget(Vars.E.Range) &&
                Vars.getCheckBoxItem(Vars.EMenu, "interrupter"))
            {
                if (!Vars.E.GetPrediction(args.Sender).CollisionObjects.Any())
                {
                    Vars.E.Cast(Vars.E.GetPrediction(args.Sender).UnitPosition);
                    return;
                }
            }

            if (Vars.W.IsReady() &&
                args.Sender.IsValidTarget(Vars.W.Range) &&
                Vars.getCheckBoxItem(Vars.WMenu, "interrupter"))
            {
                Vars.W.Cast(Vars.W.GetPrediction(args.Sender).CastPosition);
            }
        }
示例#3
0
 private void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (R.IsReady() && args.DangerLevel >= LeagueSharp.SDK.DangerLevel.Medium && args.Sender.Distance(ObjectManager.Player) < 1300)
     {
         R.Cast(args.Sender.ServerPosition);
     }
 }
示例#4
0
 private void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (E.IsReady() && this.UseEGapclose && args.DangerLevel == LeagueSharp.SDK.DangerLevel.High && args.Sender.Distance(ObjectManager.Player) < 400)
     {
         E.Cast(ObjectManager.Player.Position.Extend(args.Sender.Position, -Misc.GiveRandomInt(300, 600)));
     }
 }
示例#5
0
 private static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (EInterrupt && E.IsReady() && args.Sender.Distance(ObjectManager.Player) < 950)
     {
         E.Cast(args.Sender.Position);
     }
 }
示例#6
0
        /// <summary>
        ///     Called on interruptable spell.
        /// </summary>
        /// <param name="sender">The object.</param>
        /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
        public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
        {
            if (Invulnerable.Check(args.Sender, DamageType.Magical, false))
            {
                return;
            }

            if (Vars.E.IsReady() &&
                args.Sender.IsValidTarget(Vars.E.Range) &&
                Vars.getCheckBoxItem(Vars.EMenu, "interrupter"))
            {
                if (!Vars.E.GetPrediction(args.Sender).CollisionObjects.Any())
                {
                    Vars.E.Cast(Vars.E.GetPrediction(args.Sender).UnitPosition);
                    return;
                }
            }

            if (Vars.W.IsReady() &&
                args.Sender.IsValidTarget(Vars.W.Range) &&
                Vars.getCheckBoxItem(Vars.WMenu, "interrupter"))
            {
                if (!ObjectManager.Get <Obj_AI_Minion>().Any(
                        m =>
                        m.CharData.BaseSkinName.Equals("caitlyntrap") &&
                        m.Distance(Vars.W.GetPrediction(args.Sender).CastPosition) < 100f))
                {
                    Vars.W.Cast(Vars.W.GetPrediction(args.Sender).CastPosition);
                }
            }
        }
示例#7
0
 private void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (args.Sender.Distance(ObjectManager.Player) < 800)
     {
         E.Cast(args.Sender);
     }
 }
示例#8
0
 private void OnInterruptableTarget(object oSender, Events.InterruptableTargetEventArgs args)
 {
     /*var sender = args.Sender;
      * if (!GameObjects.AllyMinions.Any(m => !m.IsDead && m.CharData.BaseSkinName.Contains("trap") && m.Distance(sender.ServerPosition) < 100) && ObjectManager.Player.Distance(sender) < 550)
      * {
      *  W.Cast(sender.ServerPosition);
      * }*/
 }
示例#9
0
 /// <summary>
 ///     Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The object.</param>
 /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
 public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Vars.R.IsReady() && args.Sender.IsValidTarget(Vars.R.Range) &&
         Vars.Menu["spells"]["r"]["interrupter"].GetValue <MenuBool>().Value)
     {
         Vars.R.Cast(args.Sender.ServerPosition);
     }
 }
示例#10
0
        private void OnInterruptableTarget(object oSender, Events.InterruptableTargetEventArgs args)
        {
            var sender = args.Sender;

            if (!GameObjects.AllyMinions.Any(m => m.Position.Distance(sender.ServerPosition) < 100) && args.DangerLevel >= DangerLevel.Medium && ObjectManager.Player.Distance(sender) < 550)
            {
                W.Cast(sender.ServerPosition);
            }
        }
示例#11
0
 /// <summary>
 ///     Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The object.</param>
 /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
 public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Vars.E.IsReady() && args.Sender.IsValidTarget(Vars.E.Range) &&
         !Invulnerable.Check(args.Sender, DamageType.Magical, false) &&
         Vars.Menu["spells"]["e"]["interrupter"].GetValue <MenuBool>().Value)
     {
         Vars.E.Cast(args.Sender.ServerPosition);
     }
 }
示例#12
0
        private static void OnInterruptableTarget(object obj, Events.InterruptableTargetEventArgs Args)
        {
            var target = Args.Sender;

            if (target.IsEnemy && target.IsCastingInterruptableSpell() && Menu["Tristana_Misc"]["Interrupt"] && R.IsReady() && target.IsValidTarget(R.Range))
            {
                R.CastOnUnit(target);
            }
        }
示例#13
0
 /// <summary>
 ///     Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
 public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Vars.W.IsReady() && args.Sender.IsValidTarget(Vars.W.Range) &&
         !Invulnerable.Check(args.Sender, DamageType.Physical, false) &&
         Vars.Menu["spells"]["w"]["interrupter"].GetValue <MenuBool>().Value)
     {
         Vars.W.CastOnUnit(args.Sender);
     }
 }
示例#14
0
 private static void OnInterruptableTarget(
     object sender,
     Events.InterruptableTargetEventArgs interruptableTargetEventArgs)
 {
     if (Interruptenemyskills && e.IsReady() &&
         interruptableTargetEventArgs.Sender.Distance(ObjectManager.Player) < 1000)
     {
         e.Cast(interruptableTargetEventArgs.Sender.Position);
     }
 }
示例#15
0
文件: Vayne.cs 项目: volder1/PortAIO
 /// <summary>
 ///     Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
 public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Vars.E.IsReady() &&
         args.Sender.LSIsValidTarget(Vars.E.Range) &&
         !Invulnerable.Check(args.Sender, DamageType.Magical, false) &&
         Vars.getCheckBoxItem(Vars.EMenu, "interrupter"))
     {
         Vars.E.CastOnUnit(args.Sender);
     }
 }
示例#16
0
 private static void Events_OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs e)
 {
     if (GetBool(main_menu, "interrupt"))
     {
         if (e.Sender.DistanceToPlayer() < W.Range)
         {
             W.Cast(e.Sender.ServerPosition);
         }
     }
 }
示例#17
0
 /// <summary>
 ///     Called on interruptable spell.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
 public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Vars.R.IsReady() &&
         !Invulnerable.Check(args.Sender) &&
         args.Sender.LSIsValidTarget(Vars.R.Range) &&
         Vars.getCheckBoxItem(Vars.RMenu, "interrupter"))
     {
         Vars.R.Cast(args.Sender.ServerPosition);
     }
 }
示例#18
0
 private static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (args.DangerLevel >= DangerLevel.High && Menu["E"]["Interrupt"])
     {
         if (args.Sender.IsValidTarget(E.Range))
         {
             E.CastOnUnit(args.Sender);
         }
     }
 }
示例#19
0
 private static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Menu["E"]["InterruptE"] && args.DangerLevel >= DangerLevel.High)
     {
         if (E.IsReady() && args.Sender.IsValidTarget(E.Range))
         {
             E.Cast();
         }
     }
 }
示例#20
0
 private static void Events_OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs e)
 {
     if (main_menu["taliyah.interrupt"].GetValue <MenuBool>().Value)
     {
         if (e.Sender.DistanceToPlayer() < W.Range)
         {
             W.Cast(e.Sender.ServerPosition, ObjectManager.Player.ServerPosition);
         }
     }
 }
示例#21
0
 private static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (Menu["E"]["ImmeE"] && args.DangerLevel >= DangerLevel.High)
     {
         if (args.Sender.IsValidTarget(E.Range - 30) && E.IsReady() && Player.HealthPercent <= args.Sender.HealthPercent)
         {
             E.CastOnUnit(args.Sender);
         }
     }
 }
示例#22
0
 private static void Events_OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs e)
 {
     if (getCheckBoxItem(main_menu, "taliyah.interrupt"))
     {
         if (e.Sender.DistanceToPlayer() < W.Range)
         {
             W.Cast(e.Sender.ServerPosition);
         }
     }
 }
示例#23
0
文件: Ryze.cs 项目: wade1990/PortAIO
 private static void OnInterruptableTarget(object obj, Events.InterruptableTargetEventArgs Args)
 {
     if (Menu["Ryze_Misc"]["WInt"] && W.IsReady() && Args.Sender.IsEnemy &&
         Args.Sender is AIHeroClient)
     {
         if (Args.DangerLevel >= DangerLevel.High && Args.Sender.IsValidTarget(W.Range))
         {
             W.CastOnUnit(Args.Sender);
         }
     }
 }
示例#24
0
 private void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (EInterrupt && args.Sender.Distance(ObjectManager.Player) < 750)
     {
         var pred = E.GetPrediction(args.Sender);
         if (!pred.CollisionObjects.Any())
         {
             E.Cast(args.Sender);
         }
     }
 }
示例#25
0
文件: Ahri.cs 项目: wade1990/PortAIO
 private static void OnInterruptableTarget(object obj, Events.InterruptableTargetEventArgs Args)
 {
     if (Menu["Ahri_Misc"]["EInt"] && Args.Sender.IsEnemy && Args.Sender.IsValidTarget(E.Range) && E.IsReady())
     {
         if (Args.DangerLevel >= LeagueSharp.Data.Enumerations.DangerLevel.High ||
             Args.Sender.IsCastingInterruptableSpell())
         {
             E.Cast(Args.Sender);
         }
     }
 }
示例#26
0
        private static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
        {
            if (!args.Sender.IsEnemy || !args.Sender.IsValidTarget(E.Range) || !E.IsReady())
            {
                return;
            }

            if (args.DangerLevel >= LeagueSharp.Data.Enumerations.DangerLevel.High || args.Sender.IsCastingInterruptableSpell())
            {
                CastSpell(E, args.Sender);
            }
        }
示例#27
0
 private void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
 {
     if (E.IsReady() && this.UseEGapclose && args.DangerLevel == DangerLevel.High && args.Sender.Distance(ObjectManager.Player) < 400)
     {
         var pos = ObjectManager.Player.Position.Extend(args.Sender.Position, -Misc.GiveRandomInt(300, 600));
         if (pos.IsUnderEnemyTurret() && !ObjectManager.Player.IsUnderEnemyTurret())
         {
             return;
         }
         E.Cast(pos);
     }
 }
示例#28
0
        private static void Events_OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs e)
        {
            if (!Config.Misc.AutoInterrupt.Enabled)
            {
                return;
            }

            if (Config.Misc.AutoInterrupt.UseR && SpellManager.R.IsReady() && e.Sender.IsValidTarget(SpellManager.R.Range))
            {
                Extensions.CastR(e.Sender);
            }
        }
示例#29
0
        private static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs Args)
        {
            var target = Args.Sender;

            if (Menu["Blitzcrank_Misc"]["Interrupt"] && target.IsEnemy && target.IsValidTarget(R.Range) && R.IsReady())
            {
                if (Args.DangerLevel >= LeagueSharp.Data.Enumerations.DangerLevel.High ||
                    target.IsCastingInterruptableSpell())
                {
                    R.Cast();
                }
            }
        }
示例#30
0
        /// <summary>
        ///     Called on interruptable spell.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="Events.InterruptableTargetEventArgs" /> instance containing the event data.</param>
        public static void OnInterruptableTarget(object sender, Events.InterruptableTargetEventArgs args)
        {
            if (GameObjects.Player.IsDead || !Invulnerable.Check(args.Sender, DamageType.Magical, false))
            {
                return;
            }

            if (Vars.R.IsReady() && args.Sender.IsValidTarget(Vars.R.Range) &&
                Vars.Menu["spells"]["r"]["interrupter"].GetValue <MenuBool>().Value)
            {
                Vars.R.CastOnUnit(args.Sender);
            }
        }