示例#1
0
        static void Gapcloser_OnGapcloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
        {
            if (sender.IsMe || sender.IsAlly)
            {
                return;
            }

            if (MenuManager.GetCheckBox("Mixed.Gap"))
            {
                if (E.IsReady() && sender.IsValidTarget(E.Range))
                {
                    E.Cast(sender);
                }

                if (Q.IsReady() && sender.IsValidTarget(Q.Range))
                {
                    var qPre = Q.GetPrediction(sender);

                    if (qPre.HitChance == HitChance.High)
                    {
                        Q.Cast(qPre.CastPosition);
                    }
                }
            }
        }
示例#2
0
文件: Teemo.cs 项目: volder1/PortAIO
        private void Gapcloser_OnGapcloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
        {
            if (getCheckBoxItem(gapCloser, "antiGap") && e.Sender.IsHPBarRendered && e.Sender.IsVisible)
            {
                if (e.Sender.LSIsValidTarget(_q.Range))
                {
                    if (_q.IsReady())
                    {
                        _q.CastOnUnit(e.Sender);
                    }
                }

                if (_w.IsReady())
                {
                    _w.Cast();
                }

                if (e.End.LSDistance(ObjectManager.Player.Position) <= 300)
                {
                    if (_r.IsReady())
                    {
                        _r.Cast(ObjectManager.Player.Position);
                    }
                }
            }
        }
示例#3
0
 private static void Gapcloser_OnGapcloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
 {
     if (getCheckBoxItem(misc, "miscGapcloser") && W.IsInRange(e.End) && sender.IsEnemy)
     {
         GapCloserPos = e.End;
         if (LeagueSharp.Common.Geometry.LSDistance(e.Start, e.End) > e.Sender.Spellbook.GetSpell(e.Slot).SData.CastRangeDisplayOverride&& e.Sender.Spellbook.GetSpell(e.Slot).SData.CastRangeDisplayOverride > 100)
         {
             GapCloserPos = LeagueSharp.Common.Geometry.LSExtend(e.Start, e.End, e.Sender.Spellbook.GetSpell(e.Slot).SData.CastRangeDisplayOverride);
         }
         W.Cast(GapCloserPos.LSTo2D(), true);
     }
 }
示例#4
0
        private static void Gapcloser_OnGapCloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
        {
            if (sender == null || sender.IsAlly)
            {
                return;
            }

            if ((e.End.Distance(Variables._Player) <= sender.GetAutoAttackRange()) && Manager.MenuManager.AntigapE && Manager.SpellManager.E.IsReady())
            {
                Manager.SpellManager.E.Cast(sender.Position);
            }
        }
示例#5
0
 static void OnGapCloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs args)
 {
     if (Config.Misc.Menu["antigap"].Cast <CheckBox>().CurrentValue)
     {
         if (sender.IsEnemy && sender is AIHeroClient && Player.Instance.Distance(sender) < E.Range && E.IsReady())
         {
             if (StateHandler.debug)
             {
                 Chat.Print("USED E FOR Gapcloser " + args.SpellName);
             }
             E.Cast(sender.Position);
         }
     }
 }
示例#6
0
文件: Program.cs 项目: joyhck/OKTW-EB
 static void Gapcloser_OnGapcloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
 {
     if (sender == myHero)
     {
         return;
     }
     if (myHero.IsDead || !antiQ || !Q.IsReady())
     {
         return;
     }
     if (GapMenu[sender.ChampionName + "_" + e.Slot].Cast <CheckBox>().CurrentValue)
     {
         Q2.Cast(sender, false);
     }
 }
示例#7
0
 private static void OnEnemyGapcloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
 {
     if (sender.IsAlly || e.Sender.IsAlly)
     {
         return;
     }
     if (gapcloser)
     {
         if (E.IsReady())
         {
             if (e.Sender.IsValidTarget(E.Range))
             {
                 E.Cast(e.Sender);
             }
         }
     }
 }
示例#8
0
        private static void Gapcloser_OnGapCloser(AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs e)
        {
            if (sender == null || sender.IsAlly)
            {
                return;
            }

            if ((e.End.Distance(Variables._Player) <= 70) && Manager.MenuManager.GapcloseE && Manager.SpellManager.E.IsReady())
            {
                Manager.SpellManager.E.Cast(sender);
            }

            if ((e.End.Distance(Variables._Player) <= 70) && Manager.MenuManager.GapcloseQ && Manager.SpellManager.Q.IsReady())
            {
                var QPos = e.End.Extend(Variables._Player.Position, Manager.SpellManager.Q.Range);
                Player.CastSpell(SpellSlot.Q, QPos.To3D());
            }
        }
示例#9
0
文件: Misc.cs 项目: yaazyy/Elobbudy
        internal void OnGapCloser(EloBuddy.AIHeroClient sender, EloBuddy.SDK.Events.Gapcloser.GapcloserEventArgs args, EkkoCore core)
        {
            if (sender == null || sender.IsAlly)
            {
                return;
            }
            var Gapcloser = core._menu.MiscMenu["MG"].Cast <CheckBox>().CurrentValue;

            if (Gapcloser != false)
            {
                if (sender.IsAttackingPlayer)
                {
                    core.spells.W.Cast(core.Player.Position);
                    this.CastEOut(sender, core);
                    var predQ = core.spells.Q.GetPrediction(sender);
                    if (predQ.HitChance >= HitChance.High)
                    {
                        core.spells.Q.Cast(predQ.CastPosition);
                    }
                }
            }
        }