Example #1
0
        public static void DoInterrupt(AIHeroClient Source, Interrupter.InterruptableTargetEventArgs args)
        {
            if (Source.IsMe || Source.IsAlly || args.DangerLevel < Interrupter.DangerLevel.Medium)
            {
                return;
            }

            var q = MiscMenu.GetCheckbox("inQ") && Q.IsReady() && Source.IsValidTarget(Q.Range) && args.MovementInterrupts;
            var e = MiscMenu.GetCheckbox("inE") && E.IsReady() && Orbwalker.InAutoAttackRange(Source) && args.MovementInterrupts;
            var r = MiscMenu.GetCheckbox("inR") && R.IsReady() && Source.IsValidTarget(R.Range);

            if (e)
            {
                E.Cast(Source);
            }

            if (q)
            {
                Q.PredictionCast(Source);
            }

            if (r)
            {
                R.Cast();
            }
        }
Example #2
0
        public static void DoInterrupt(AIHeroClient Source, Interrupter.InterruptableTargetEventArgs args)
        {
            if (Source.IsMe || Source.IsAlly || args.DangerLevel < Interrupter.DangerLevel.Medium)
            {
                return;
            }
            var e  = MiscMenu.GetCheckbox("inE") && E.IsReady() && Source.IsValidTarget(E.Range);
            var eq = MiscMenu.GetCheckbox("inEQ") && Q.IsReady() && E.IsReady() && Source.IsValidTarget(EQ.Range);


            if (eq)
            {
                var     pred = EQ.GetPrediction(Source);
                Vector3 Qpos = pred.CastPosition;
                if (ObjectManager.Player.Distance(Qpos) <= Q.Range)
                {
                    Q.Cast(Qpos);
                    Main.DoEQ = true;
                }
                else
                {
                    Qpos = ObjectManager.Player.Position.Extend(Qpos, Q.Range);
                    Q.Cast(Qpos);
                    Main.DoEQ = true;
                }
            }

            if (e)
            {
                E.Cast(Source);
            }
        }
Example #3
0
 public static void DoInterrupt(AIHeroClient Source, Interrupter.InterruptableTargetEventArgs args)
 {
     if (Source.IsMe || Source.IsAlly || args.DangerLevel < Interrupter.DangerLevel.Medium)
     {
         return;
     }
 }
Example #4
0
        private static void Interrupt(AIHeroClient Source, Interrupter.InterruptableTargetEventArgs args)
        {
            if (!Source.IsEnemy || args.DangerLevel < Interrupter.DangerLevel.Medium)
            {
                return;
            }

            if (Source != null && Source.IsValidTarget(E.Range) &&
                miscMenu.GetCheckbox("IE") && E.IsReady())
            {
                E.CastOnUnit(Source);
            }
        }
Example #5
0
        public static void DoInterrupt(AIHeroClient Source, Interrupter.InterruptableTargetEventArgs args)
        {
            if (Source.IsMe || Source.IsAlly || args.DangerLevel < Interrupter.DangerLevel.Medium)
            {
                return;
            }

            var q = MiscMenu.GetCheckbox("inQ") && Q.IsReady() && Source.IsValidTarget(Q.Range);
            var r = MiscMenu.GetCheckbox("inR") && R.IsReady() && Source.IsValidTarget(R.Range);


            if (q)
            {
                Q.Cast(Source);
            }

            if (r)
            {
                R.Cast(Source);
            }
        }