예제 #1
0
        private static void OnInterruptableTarget(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            var intermenu   = _Misc.InterruptSpells.Enabled;
            var eqintermenu = _Misc.eqinter.Enabled;
            var rintermenu  = _Misc.rinter.Enabled;

            if (intermenu)
            {
                if (ObjectManager.Player.Distance(sender) < Q.Range && Q.IsReady())
                {
                    Q.Cast();
                    ObjectManager.Player.IssueOrder(GameObjectOrder.AttackUnit, sender);
                }

                if (ObjectManager.Player.Distance(sender) < E.Range && E.IsReady() && Q.IsReady())
                {
                    if (eqintermenu)
                    {
                        Q.Cast();
                        E.CastIfHitchanceEquals(sender, HitChance.High, true);
                        ObjectManager.Player.IssueOrder(GameObjectOrder.AttackUnit, sender);
                    }
                }
                else if (ObjectManager.Player.Distance(sender) > E.Range)
                {
                    if (rintermenu)
                    {
                        if (ObjectManager.Player.Distance(sender) < R.Range && R.IsReady())
                        {
                            R.CastIfHitchanceEquals(sender, HitChance.High, true);
                        }
                    }
                }
            }
        }
예제 #2
0
 private static void Interrupter2_OnInterruptableTarget(AIHeroClient unit, Interrupter.InterruptSpellArgs args)
 {
     if (E.IsReady() && unit.IsValidTarget(550) && getMenuBoolItem(emenu, "Int_E") && unit.IsEnemy)
     {
         E.Cast(unit);
     }
 }
예제 #3
0
 static void Interrupter_OnPossibleToInterrupt(AIBaseClient unit, Interrupter.InterruptSpellArgs args)
 {
     if (args.DangerLevel >= Interrupter.DangerLevel.High && unit.Distance(Player.Position) <= _q.Range)
     {
         _q.Cast(unit);
     }
 }
예제 #4
0
 private static void Interrupter_OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (mainMenu["Combo"].GetValue <MenuBool>("intR").Enabled&& GameObjects.Player.Distance(sender) < R.Range && R.IsReady())
     {
         R.Cast();
     }
 }
예제 #5
0
        private static void OnPossibleToInterrupt(AIHeroClient target, Interrupter.InterruptSpellArgs args)
        {
            if (args.DangerLevel < Interrupter.DangerLevel.High || target.IsAlly)
            {
                return;
            }

            if (LeonaMenu["Interrupt Settings"]["InterruptQ"].GetValue <MenuBool>().Enabled&& Q.IsReady())
            {
                if (Q.CanCast(target))
                {
                    if (Q.Cast())
                    {
                        Orbwalker.ResetAutoAttackTimer();
                        Player.IssueOrder(GameObjectOrder.AttackUnit, target);
                    }

                    return;
                }
            }

            if (LeonaMenu["Interrupt Settings"]["InterruptR"].GetValue <MenuBool>().Enabled&& R.IsReady())
            {
                if (R.CanCast(target))
                {
                    R.Cast(target);
                }
            }
        }
예제 #6
0
 private static void Interrupter_OnInterruptableTarget(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (R.IsReady() && sender.IsValidTarget(E.Range) && Config["Misc"].GetValue <MenuBool>("interrupt"))
     {
         R.CastOnUnit(sender);
     }
 }
예제 #7
0
 private static void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (E.IsReady() && Config[Player.CharacterName]["EConfig"].GetValue <MenuBool>("Int").Enabled&& sender.IsValidTarget(E.Range))
     {
         E.CastOnUnit(sender);
     }
 }
예제 #8
0
            public static void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
            {
                if (sender.IsMe || sender.IsAlly)
                {
                    return;
                }

                if (SpellManager.Q.IsReady() && MenuManager.MiscInterrupterMenu["Q"].GetValue <MenuBool>().Enabled&& args.DangerLevel >= Interrupter.DangerLevel.Medium)
                {
                    var getPrediction = SpellManager.Q.GetPrediction(sender, true);

                    if (SpellManager.Q.SData.Name == "AurelionSolQ")
                    {
                        if (sender.IsValidTarget(SpellManager.Q.Range) && getPrediction.Hitchance >= HitChance.High && InterrupterQ)
                        {
                            SpellManager.Q.Cast(getPrediction.CastPosition);
                            InterrupterQ = false; DelayAction.Add(2000, () => InterrupterQ = true);
                        }
                    }
                    else if (SpellManager.Q.SData.Name == "AurelionSolQCancelButton")
                    {
                        if (AurelionSolQMissile != null && sender.IsValidTarget(150f, false, AurelionSolQMissile.Position))
                        {
                            SpellManager.Q.Cast();
                        }
                    }
                }
            }
예제 #9
0
 private static void InterrupterOnOnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (sender.IsEnemy && sender.Distance(Player) < Q.Range)
     {
         Q.CastOnUnit(sender);
     }
 }
 private static void Interrupter_OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (sender.IsMe)
     {
         return;
     }
     if (args.DangerLevel >= Interrupter.DangerLevel.Low && W.IsReady() && sender.IsValidTarget(W.Range))
     {
         if (Player.CanUseItem((int)ItemId.Tiamat) ||
             Player.CanUseItem((int)ItemId.Ravenous_Hydra) ||
             Player.CanUseItem((int)ItemId.Tiamat_Melee_Only) ||
             Player.CanUseItem((int)ItemId.Ravenous_Hydra_Melee_Only)
             )
         {
             Player.UseItem((int)ItemId.Tiamat);
             Player.UseItem((int)ItemId.Ravenous_Hydra_Melee_Only);
             Player.UseItem((int)ItemId.Ravenous_Hydra);
             Player.UseItem((int)ItemId.Tiamat_Melee_Only);
             DelayAction.Add(1, () => { W.Cast(sender); });
         }
         else
         {
             DelayAction.Add(1, () => { W.Cast(sender); });
         }
     }
 }
예제 #11
0
 private void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (E.IsReady() && sender.IsValidTarget(E.Range))
     {
         E.Cast(sender);
     }
 }
예제 #12
0
 private static void DangerousSpellsInterupt(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (Main[Gamer.CharacterName]["interrupt"]["interruptR"] && R.IsReady() && args.DangerLevel >= Interrupter.DangerLevel.Medium && sender.DistanceToPlayer() < 1500 && sender.IsEnemy)
     {
         R.Cast(sender.Position);
     }
 }
예제 #13
0
        static void Interrupter2_OnInterruptableTarget(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            if (!Config["Misc"].GetValue <MenuBool>("InterruptSpells"))
            {
                return;
            }

            if (args.DangerLevel <= Interrupter.DangerLevel.Medium)
            {
                return;
            }

            if (sender.IsAlly)
            {
                return;
            }

            if (R.IsReady())
            {
                Q.Cast(sender, true);
                if (BallManager.BallPosition.Distance(sender.Position) < R.Range * R.Range)
                {
                    R.Cast(Player.Position, true);
                }
            }
        }
예제 #14
0
        private static void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            if (ObjectManager.Player.IsDead || ObjectManager.Player.IsRecalling())
            {
                return;
            }

            if (MenuGUI.IsChatOpen || MenuGUI.IsShopOpen)
            {
                return;
            }

            if (Q.IsCharging || ObjectManager.Player.HasBuff("XerathLocusOfPower2"))
            {
                return;
            }

            if (MenuWrapper.Misc.EAntiGapcloser.Enabled && E.IsReady() && args.DangerLevel >= Interrupter.DangerLevel.Medium && sender.DistanceToPlayer() < E.Range)
            {
                var pred = E.GetPrediction(sender);
                if (pred.Hitchance >= HitChance.High)
                {
                    E.Cast(pred.CastPosition);
                }
            }
        }
예제 #15
0
        private static void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            if (MenuSettings.Misc.interrupter.Enabled && args.DangerLevel >= Interrupter.DangerLevel.High)
            {
                if (!sender.IsValidTarget(Q.Range))
                {
                    return;
                }

                if (E.IsReady() && getBuffCounts() == 3)
                {
                    E.Cast();
                }

                if (objPlayer.HasBuff("anniepassiveprimed"))
                {
                    if (W.IsReady() && sender.IsValidTarget(W.Range))
                    {
                        W.Cast(sender.Position);
                        return;
                    }
                    else if (Q.IsReady() && sender.IsValidTarget(Q.Range))
                    {
                        Q.Cast(sender);
                        return;
                    }
                    else if (R.IsReady() && sender.IsValidTarget(R.Range))
                    {
                        R.Cast(sender.Position);
                        return;
                    }
                }
            }
        }
예제 #16
0
 private static void OnInterrupterSpell(AIHeroClient target, Interrupter.InterruptSpellArgs args)
 {
     if (MenuWrapper.Misc.WI.Enabled && W.IsReady() && args.DangerLevel >= Interrupter.DangerLevel.Medium && target.DistanceToPlayer() < 660)
     {
         W.Cast(target.Position);
     }
 }
예제 #17
0
 private void Interrupter_OnPosibleToInterruptEvent(
     AIHeroClient sender,
     Interrupter.InterruptSpellArgs args
     )
 {
     Interrupter_OnPosibleToInterrupt(sender, args);
 }
예제 #18
0
        static void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            if (!mainMenu["Misc"].GetValue <MenuBool>("Interrupter").Enabled)
            {
                return;
            }

            if (args.DangerLevel <= Interrupter.DangerLevel.Low)
            {
                return;
            }

            if (sender.IsAlly)
            {
                return;
            }

            if (sender.IsEnemy && W.IsReady() && sender.Distance(GameObjects.Player) <= W.Range)
            {
                W.Cast(sender);
            }
            else
            {
                if (sender.IsEnemy && Q.IsReady() && sender.Distance(GameObjects.Player) <= Q.Range)
                {
                    Q.Cast(sender);
                }
            }
        }
예제 #19
0
 private static void InterrupterSpellHandler(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (Config["extra"].GetValue <MenuBool>("autoInter") && (int)args.DangerLevel > 0)
     {
         knockAway(sender);
     }
 }
예제 #20
0
 static void InterrupterSpellHandler(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (!Config["Misc"].GetValue <MenuBool>("InterruptSpells"))
     {
         return;
     }
     E.Cast(sender);
 }
예제 #21
0
        private void Interrupter2_OnInterruptableTarget(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            if (args.Sender.IsAlly)
            {
                return;
            }

            W.Cast(args.Sender);
        }
예제 #22
0
 private static void Interrupter_OnPossibleToInterrupt(AIBaseClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (_e.IsReady() && _q.IsReady() && sender.IsValidTarget(_q.Range) && _config["misc"]["UseEQInt"].GetValue <MenuBool>().Enabled &&
         _e.GetPrediction(sender).Hitchance >= Echange())
     {
         _e.Cast(sender, Packets());
     }
     _q.Cast(sender, Packets());
 }
예제 #23
0
 internal static void Interrupter2_OnInterruptableTarget(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
 {
     if (sender.IsValidTarget(Lib.Spellbook["E"].Range) && Lib.Spellbook["E"].IsReady())
     {
         if (Config["rmenu"].GetValue <MenuBool>("useeint").Enabled)
         {
             Lib.Spellbook["E"].Cast(sender.PreviousPosition);
         }
     }
 }
예제 #24
0
        /// <summary>
        ///     Gets the value.
        /// </summary>
        /// <typeparam name="T">Type of value to get.</typeparam>
        /// <param name="name">The name.</param>
        /// <returns>The type of value.</returns>

        /// <summary>
        ///     Called when a unit is casting a spell that can be interrupted.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="Interrupter2.InterruptableTargetEventArgs" /> instance containing the event data.</param>
        private static void Interrupter2OnOnInterruptableTarget(
            AIHeroClient sender,
            Interrupter.InterruptSpellArgs args)
        {
            if (!sender.IsValidTarget(E.Range) || args.DangerLevel == Interrupter.DangerLevel.Low)
            {
                return;
            }

            E.Cast(sender);
        }
예제 #25
0
        private static void Interrupter2_OnInterruptableTarget(
            AIHeroClient sender,
            Interrupter.InterruptSpellArgs args)
        {
            if (!sender.IsValidTarget(R.Range) || args.DangerLevel != Interrupter.DangerLevel.High ||
                args.EndTime - Environment.TickCount < 500 || !miscMenu["UseRInterrupt"].GetValue <MenuBool>())
            {
                return;
            }

            R.Cast(sender);
        }
예제 #26
0
        /*private static bool Packets()
         * {
         *  return _config.Item("usePackets").GetValue<bool>();
         * }*/

        private static void Interrupter2_OnInterruptableTarget(
            AIHeroClient unit, Interrupter.InterruptSpellArgs args)
        {
            if (!getMenuBoolItem(miscMenu, "UseEInt"))
            {
                return;
            }
            if (unit.IsValidTarget(_humanE.Range) && _humanE.GetPrediction(unit).Hitchance >= HitChance.Low)
            {
                _humanE.Cast(unit);
            }
        }
예제 #27
0
        private void OnInterrupt(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            bool onI = GetMenu.GetBoolOption("IE");

            if (onI)
            {
                if (sender.Distance(GameObjects.Player) < 300 && GetSpells.GetE.IsInRange(sender))
                {
                    GetSpells.GetE.Cast(sender.Position);
                }
            }
        }
예제 #28
0
        private static void OnInterrupterSpell(AIHeroClient sender, Interrupter.InterruptSpellArgs args)
        {
            if (!Config[Player.CharacterName]["QConfig"].GetValue <MenuBool>("intQ").Enabled || !Q.IsReady())
            {
                return;
            }

            if (sender.IsValidTarget(Q.Range))
            {
                Q.Cast(sender);
            }
        }
예제 #29
0
 public static void interrupt(
     AIHeroClient sender,
     Interrupter.InterruptSpellArgs args
     )
 {
     if (sender.IsEnemy && W.IsReady() && sender.IsValidTarget() && !sender.IsZombie && Winterrupt)
     {
         if (sender.IsValidTarget(125 + Player.BoundingRadius + sender.BoundingRadius))
         {
             W.Cast();
         }
     }
 }
예제 #30
0
        public static void Interupt(AIBaseClient sender, Interrupter.InterruptSpellArgs i)
        {
            var Inter = Misc["inter"].GetValue <MenuBool>().Enabled;

            if (!sender.IsEnemy || !(sender is AIHeroClient) || Player.Instance.IsRecalling())
            {
                return;
            }
            if (Inter && E.IsReady() && i.DangerLevel == DangerLevel.Medium && E.IsInRange(sender))
            {
                E.Cast(sender.Position);
            }
        }