示例#1
0
        protected override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!menu.Item("E_Gap_Closer", true).GetValue<bool>()) return;

            if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range)&& GetCurrentHeat() < 70)
                E.Cast(gapcloser.Sender);
        }
示例#2
0
        private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!gapcloser.Sender.IsValidTarget(spells[Spells.Q].Range))
            {
                return;
            }

            if (gapcloser.Sender.Distance(Player) > spells[Spells.Q].Range)
            {
                return;
            }

            var useQ = ElSejuaniMenu.getCheckBoxItem(ElSejuaniMenu.interuptMenu, "ElSejuani.Interupt.Q");
            var useR = ElSejuaniMenu.getCheckBoxItem(ElSejuaniMenu.interuptMenu, "ElSejuani.Interupt.R");

            if (gapcloser.Sender.IsValidTarget(spells[Spells.Q].Range))
            {
                if (useQ && spells[Spells.Q].IsReady())
                {
                    spells[Spells.Q].Cast(gapcloser.Sender);
                }

                if (useR && !spells[Spells.Q].IsReady() && spells[Spells.R].IsReady())
                {
                    spells[Spells.R].Cast(gapcloser.Sender);
                }
            }
        }
示例#3
0
        private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!CConfig.ConfigMenu.Item("AntiGapCloser").GetValue<bool>() || !CSpell.E.CanCast(gapcloser.Sender))
                return;

            CSpell.E.Cast(gapcloser.Sender);
        }
示例#4
0
        private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            var gapCloserActive = ElVladimirMenu._menu.Item("ElVladimir.Settings.AntiGapCloser.Active").GetValue<bool>();

            if (gapCloserActive && spells[Spells.W].IsReady() && gapcloser.Sender.Distance(Player) < spells[Spells.W].Range && Player.CountEnemiesInRange(spells[Spells.Q].Range) >= 1)
                spells[Spells.W].Cast(Player);
        }
示例#5
0
 private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (DashSpell.IsReady() && Config.Item("EGCchampion" + gapcloser.Sender.ChampionName, true).GetValue<bool>())
     {
         int GapcloserMode = Config.Item("GapcloserMode", true).GetValue<StringList>().SelectedIndex;
         if (GapcloserMode == 0)
         {
             var bestpoint = Player.Position.Extend(Game.CursorPos, DashSpell.Range);
             if (IsGoodPosition(bestpoint))
                 DashSpell.Cast(bestpoint);
         }
         else
         {
             var points = OktwCommon.CirclePoints(10, DashSpell.Range, Player.Position);
             var bestpoint = Player.Position.Extend(gapcloser.Sender.Position, -DashSpell.Range);
             int enemies = bestpoint.CountEnemiesInRange(DashSpell.Range);
             foreach (var point in points)
             {
                 int count = point.CountEnemiesInRange(DashSpell.Range);
                 if (count < enemies)
                 {
                     enemies = count;
                     bestpoint = point;
                 }
                 else if (count == enemies && Game.CursorPos.Distance(point) < Game.CursorPos.Distance(bestpoint))
                 {
                     enemies = count;
                     bestpoint = point;
                 }
             }
             if (IsGoodPosition(bestpoint))
                 DashSpell.Cast(bestpoint);
         }
     }
 }
示例#6
0
 private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
     {
         E.Cast(gapcloser.Sender);
     }
 }
示例#7
0
        /// <summary>
        ///     Fired on an incoming gapcloser.
        /// </summary>
        /// <param name="args">The <see cref="ActiveGapcloser" /> instance containing the event data.</param>
        public static void OnGapCloser(ActiveGapcloser args)
        {
            if (ObjectManager.Player.IsDead
                || TargetSelector.IsInvulnerable(args.Sender, TargetSelector.DamageType.Magical, false))
            {
                return;
            }

            if (Variables.E.IsReady() && ObjectManager.Player.Distance(args.End) < Variables.E.Range - 50f
                && Variables.EMenu.Item("gapcloser").IsActive())
            {
                Variables.E.Cast(args.End);
            }

            if (Variables.W.IsReady() && args.Sender.IsValidTarget(Variables.W.Range)
                && Variables.WMenu.Item("gapcloser").IsActive())
            {
                if (args.Sender.ChampionName.Equals("MasterYi"))
                {
                    Utility.DelayAction.Add(
                        250,
                        () => { Variables.W.Cast(ObjectManager.Player.ServerPosition, args.Start); });
                    return;
                }

                Variables.W.Cast(
                    args.End,
                    args.Sender.IsMelee
                        ? ObjectManager.Player.ServerPosition.Extend(
                            args.End,
                            ObjectManager.Player.Distance(args.End) * 2)
                        : ObjectManager.Player.ServerPosition);
            }
        }
 private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (KoreanUtils.GetParamBool(vlady.MainMenu, "antigapcloser") && W.IsReady())
     {
         W.Cast();
     }
 }
示例#9
0
文件: Program.cs 项目: lanyi777/CN
        public static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!Config.Item("UseGap").GetValue<bool>()) return;

            if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
                E.Cast(gapcloser.Sender);
        }
示例#10
0
文件: Program.cs 项目: lanyi777/CN
        public static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!menu.Item("UseGap").GetValue<bool>()) return;

            if (W.IsReady() && gapcloser.Sender.IsValidTarget(W.Range))
                W.Cast(gapcloser.Sender, packets());
        }
示例#11
0
 private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (humansexygirl)
     {
         if (Config.Item("agapcloser").GetValue<bool>())
         {
             if (gapcloser.Sender.IsValidTarget(1000))
             {
                 Render.Circle.DrawCircle(gapcloser.Sender.Position, gapcloser.Sender.BoundingRadius, Color.Gold, 5);
                 var targetpos = Drawing.WorldToScreen(gapcloser.Sender.Position);
                 Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, Color.Gold, "Gapcloser");
             }
             if (E.CanCast(gapcloser.Sender))
             {
                 E.Cast(gapcloser.Sender);
             }
         }
     }
     if (spidergirl)
     {
         if (Config.Item("agapcloser2").GetValue<bool>())
         {
             if (gapcloser.Sender.IsValidTarget(1000))
             {
                 Render.Circle.DrawCircle(gapcloser.Sender.Position, gapcloser.Sender.BoundingRadius, Color.Gold, 5);
                 var targetpos = Drawing.WorldToScreen(gapcloser.Sender.Position);
                 Drawing.DrawText(targetpos[0] - 40, targetpos[1] + 20, Color.Gold, "Gapcloser");
             }
             if (E.CanCast(gapcloser.Sender))
             {
                 E.Cast(gapcloser.Sender);
             }
         }
     }
 }
示例#12
0
 static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (!Config.GapcloseE)
         return;
     var awayPosition = gapcloser.End.Extend(ObjectManager.Player.ServerPosition, ObjectManager.Player.Distance(gapcloser.End) + SpellManager.E.Range);
     SpellManager.E.Cast(awayPosition);
 }
示例#13
0
 private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (Q.IsReady() && gapcloser.Sender.IsValidTarget(400) && Config.Item("antigap").GetValue<bool>())
     {
         Q.SPredictionCast(gapcloser.Sender, (HitChance)Config.Item("qhit").GetValue<Slider>().Value + 1);
     }
 }
示例#14
0
 public static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if(!Program.Player.IsDead && MainMenu._MainMenu.Item("WGap").GetValue<bool>() && Program.W.CanCast(gapcloser.Sender))
     {
         Program.W.CastOnUnit(gapcloser.Sender);
     }
 }
示例#15
0
 private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (_w.IsReady() && gapcloser.Sender.IsValidTarget(_w.Range) && _config.Item("Gap_W").GetValue<bool>())
     {
         _w.Cast();
     }
 }
示例#16
0
        private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!_mainMenu.Item("gapp").GetValue<bool>())
                return;

            var attacker = gapcloser.Sender;
            if (attacker.IsValidTarget(360f))
            {
                if (!_cougarForm)
                {
                    Javelin.SPredictionCast(attacker, HitChance.Medium);

                    if (Aspectofcougar.IsReady())
                        Aspectofcougar.Cast();
                }

                if (_cougarForm)
                {
                    if (attacker.Distance(Me.ServerPosition) <= Takedown.Range && Takedown.IsReady())
                        Takedown.CastOnUnit(Me);
                    if (attacker.Distance(Me.ServerPosition) <= Swipe.Range && Swipe.IsReady())
                        Swipe.Cast(attacker.ServerPosition);
                }
            }
        }
示例#17
0
 public override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (gapcloser.End.Distance(ObjectManager.Player.ServerPosition) <= 300)
     {
         Spells[E].Cast(gapcloser.End.Extend(ObjectManager.Player.ServerPosition, ObjectManager.Player.Distance(gapcloser.End) + Spells[E].Range));
     }
 }
示例#18
0
 protected override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (config.Item("UseQ2Misc").GetValue<bool>() && Q.IsReady())
     {
         if (gapcloser.Sender.IsEnemy && Vector3.Distance(Player.ServerPosition, gapcloser.Sender.ServerPosition) < Q.Range)
         {
             if (myUtility.ImmuneToMagic(gapcloser.Sender) || myUtility.ImmuneToCC(gapcloser.Sender)) return;
             QPredict(gapcloser.Sender);
         }
     }
     if (config.Item("UseWMisc").GetValue<bool>() && W.IsReady())
     {
         if (gapcloser.Sender.IsEnemy && Vector3.Distance(Player.ServerPosition, gapcloser.End) < W.Range)
         {
             W.Cast(gapcloser.End);
         }
     }
     if (config.Item("UseEMisc").GetValue<bool>() && E.IsReady())
     {
         if (gapcloser.Sender.IsEnemy &&  gapcloser.Sender.Target.IsMe)
         {
             E.CastOnUnit(Player);
         }
     }
 }
示例#19
0
 private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (MenuProvider.Champion.Misc.UseAntiGapcloser)
         if (W.isReadyPerfectly())
             if (gapcloser.Sender.IsValidTarget(W.Range))
                 W.CastOnUnit(gapcloser.Sender);
 }
示例#20
0
 private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (E.IsReady() && Config.Item("Gap").GetValue<bool>() && gapcloser.Sender.IsValidTarget(E.Range))
     {
         E.Cast(gapcloser.Sender.ServerPosition);
     }
 }
示例#21
0
        public override void OnGapClose(ActiveGapcloser gapcloser)
        {
            if (!Menu.Item("Misc_useE_Gap_Closer").GetValue<bool>()) return;

            if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
                E.Cast(gapcloser.Sender, UsePackets());
        }
示例#22
0
 public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (Q.CastCheck(gapcloser.Sender, "Gapcloser.Q"))
     {
         Q.Cast(gapcloser.Sender);
     }
 }
示例#23
0
        static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (gapcloser.Sender.IsAlly || !GetValueMenuBool("GC.W")) return;

            if (W.IsReady() && W.IsInRange(gapcloser.Sender))
                W.CastOnUnit(gapcloser.Sender);
        }
示例#24
0
        private void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            var target = gapcloser.Sender;

            if (E.IsReady() && target.IsValidTarget(E.Range) && Config.Item("gapE", true).GetValue<bool>() && Config.Item("gap" + target.ChampionName).GetValue<bool>())
                E.Cast(target);
        }
示例#25
0
文件: CassW.cs 项目: jayblah/TheNinow
 public override void Gapcloser(ComboProvider combo, ActiveGapcloser gapcloser)
 {
     if (UseOnGapcloser && (!_r.CanBeCast() || _r.GapcloserUltHp < ObjectManager.Player.HealthPercent))
     {
         Cast(gapcloser.Sender);
     }
 }
示例#26
0
        public override void AntiGapcloser_OnEnemyGapcloser(LeagueSharp.Common.ActiveGapcloser gapcloser)
        {
            if (!E.IsReady() || !Menu.Item("AntiGapcloser").IsActive())
            {
                return;
            }

            LeagueSharp.Common.Utility.DelayAction.Add(
                150, () =>
            {
                if (gapcloser.Sender.IsValidTarget(E.Range) && E.Cast(gapcloser.Sender).IsCasted() &&
                    Menu.Item("AntiGapcloserR").IsActive())
                {
                    LeagueSharp.Common.Utility.DelayAction.Add(
                        (int)(200 + 1000 * E.Delay + Game.Ping / 2f), () =>
                    {
                        SpellManager.UpdateUltimate();
                        if (R.GetSpellSlot() == SpellSlot.E)
                        {
                            R.Cast(gapcloser.Sender);
                        }
                    });
                }
            });
        }
示例#27
0
 public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (E.IsReady() && gapcloser.Sender.IsValidTarget(E.Range))
     {
         E.Cast(gapcloser.Sender);
     }
 }
示例#28
0
 private void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (config.Item("usewgc", true).GetValue<bool>() && gapcloser.End.Distance(player.Position) < 200)
     {
         W.Cast();
     }
 }
示例#29
0
 public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (this.Q.CastCheck(gapcloser.Sender, "Gapcloser.Q"))
     {
         this.Q.Cast(gapcloser.Sender);
     }
 }
示例#30
0
文件: Viktor.cs 项目: Foxy4eva/LSharp
        protected override void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (!menu.Item("UseGap", true).GetValue<bool>()) return;

            if (Q.IsReady() && gapcloser.Sender.IsValidTarget(Q.Range))
                Q.Cast(gapcloser.Sender);
        }
示例#31
0
文件: Draven.cs 项目: Deprive/Private
 public void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (E.IsReady() && Config.Item("EGapCloser").GetValue<bool>() && gapcloser.Sender.IsValidTarget(E.Range))
     {
         E.Cast(gapcloser.Sender);
     }
 }
示例#32
0
 private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     var target = gapcloser.Sender;
     if (target.IsAlly || target.IsMe || !(menu.Item("AntiGapcloser").GetValue<bool>())) return;
     if (GetPassiveStacks() == 4)
     {
         if (Q.IsReady())
         {
             Q.Cast(gapcloser.Sender, UsePackets());
         }
         else if (W.IsReady() && W.InRange(gapcloser.Sender.Position))
         {
             W.Cast(gapcloser.Sender, UsePackets());
         }
     }
     if (GetPassiveStacks() == 3)
     {
         if (E.IsReady()) E.Cast(UsePackets());
         if (GetPassiveStacks() == 4)
         {
             if (Q.IsReady())
             {
                 Q.Cast(gapcloser.Sender, UsePackets());
             }
             else if (W.IsReady() && W.InRange(gapcloser.Sender.Position))
             {
                 W.Cast(gapcloser.Sender, UsePackets());
             }
         }
     }
 }
示例#33
0
 internal static void OnGapCloser(LeagueSharp.Common.ActiveGapcloser gapcloser)
 {
     if (gapcloser.Sender.IsValidTarget() &&
         MenuExtensions.GetItemValue <bool>("iseriesr.vayne.misc.general.antigp") &&
         Variables.spells[SpellSlot.E].IsReady())
     {
         Variables.spells[SpellSlot.E].Cast(gapcloser.Sender);
     }
 }
示例#34
0
 public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (this.E.CastCheck(gapcloser.Sender, "Gapcloser.E"))
     {
         if (this.E.Cast(this.Target) == Spell.CastStates.SuccessfullyCasted)
         {
             this.CastW(this.E.GetPrediction(this.Target).CastPosition);
         }
     }
 }
示例#35
0
文件: Ahri.cs 项目: volder1/PortAIO
 static void AntiGapcloser_OnEnemyGapcloser(LeagueSharp.Common.ActiveGapcloser gapcloser)
 {
     if (!Misc["autoE"].Cast <CheckBox>().CurrentValue)
     {
         return;
     }
     if (EloBuddy.ObjectManager.Player.LSDistance(gapcloser.Sender, true) < _spellE.Range * _spellE.Range)
     {
         _spellE.Cast(gapcloser.Sender);
     }
 }
示例#36
0
        public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (gapcloser.Sender.IsAlly)
            {
                return;
            }

            if (this.R.CastCheck(gapcloser.Sender, "GapcloserR"))
            {
                this.R.Cast(this.Target, true);
            }
        }
示例#37
0
文件: Zilean.cs 项目: hama1/Port
        public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (gapcloser.Sender.IsAlly)
            {
                return;
            }

            if (this.E.CastCheck(gapcloser.Sender, "GapcloserE"))
            {
                this.E.Cast(gapcloser.Sender);
            }
        }
示例#38
0
文件: Leona.cs 项目: toannatkm0/LOZ
        public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (gapcloser.Sender.IsAlly)
            {
                return;
            }

            if (this.Q.CastCheck(gapcloser.Sender, "GapcloserQ"))
            {
                if (this.Q.Cast())
                {
                    Orbwalking.ResetAutoAttackTimer();
                    this.Player.IssueOrder(GameObjectOrder.AttackUnit, gapcloser.Sender);
                }
            }
        }
示例#39
0
        public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (gapcloser.Sender.IsAlly)
            {
                return;
            }

            if (this.E.CastCheck(gapcloser.Sender, "Gapcloser.E"))
            {
                this.E.CastOnUnit(gapcloser.Sender);

                if (this.W.IsReady())
                {
                    this.W.CastOnUnit(this.Player);
                }
            }
        }
示例#40
0
        private static void OnEnemyGapcloser(LeagueSharp.Common.ActiveGapcloser gapcloser)
        {
            if (!getCheckBoxItem(MenuGenerator.miscOptions, "com.ilucian.misc.gapcloser"))
            {
                return;
            }

            if (!gapcloser.Sender.IsEnemy || !(gapcloser.End.LSDistance(ObjectManager.Player.ServerPosition) < 300))
            {
                return;
            }

            if (Variables.Spell[Variables.Spells.E].IsReady())
            {
                Variables.Spell[Variables.Spells.E].Cast(
                    ObjectManager.Player.ServerPosition.LSExtend(gapcloser.End, -475));
            }
        }
示例#41
0
        public override void OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            if (gapcloser.Sender.IsAlly)
            {
                return;
            }

            if (this.Q.CastCheck(gapcloser.Sender, "Gapcloser.Q") && !this.Q.IsCharging)
            {
                var pred = this.Q.GetPrediction(gapcloser.Sender);
                if (pred.Hitchance >= HitChance.Medium)
                {
                    this.Q.Cast(pred.CastPosition);
                    this.DelayQ = true;
                }
            }

            if (this.W.CastCheck(gapcloser.Sender, "Gapcloser.W"))
            {
                this.W.CastOnUnit(gapcloser.Sender);
            }
        }
示例#42
0
 /// <summary>
 ///     OnEnemyGapcloser
 /// </summary>
 /// <remarks>
 ///     override to Implement AntiGapcloser logic
 /// </remarks>
 /// <param name="gapcloser">ActiveGapcloser</param>
 public virtual void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
 }