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); } } } }
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); } } } }
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); } }
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); } }
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); } } }
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); } }
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); } } } }
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()); } }
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); } } } }