private static void AntiGapcloser_OnEnemyGapcloser(object sender, Gapcloser.GapCloserEventArgs e) { if (MenuHelper.isMenuEnabled("dz191.vhr.misc.general", "antigp")) { DelayAction.Add((float)MenuHelper.getSliderValue("dz191.vhr.misc.general", "antigpdelay"), () => { if (e.Sender.IsValidTarget(_spells[SpellSlot.E].Range) && e.End.Distance(ObjectManager.Player.ServerPosition) <= 400f && (e.Sender is Obj_AI_Hero) && MenuHelper.isMenuEnabled(string.Format("dz191.vhr.agplist.{0}", e.Sender.ChampionName.ToLowerInvariant()), e.SpellName)) { _spells[SpellSlot.E].Cast(e.Sender); } }); } }
private static void GapcloserOnOnGapCloser(object sender, Gapcloser.GapCloserEventArgs gapCloserEventArgs) { if (VHRMenu["dz191.vhr.misc"]["dz191.vhr.misc.general"]["antigp"].GetValue<MenuBool>().Value && spells[SpellSlot.E].IsReady() && gapCloserEventArgs.Sender.IsValidTarget(spells[SpellSlot.E].Range)) { var antiGPDelay = VHRMenu["dz191.vhr.misc"]["dz191.vhr.misc.general"]["antigpdelay"].GetValue<MenuSlider>().Value; DelayAction.Add(antiGPDelay, () => { if (gapCloserEventArgs.Sender.IsValidTarget(spells[SpellSlot.E].Range)) { spells[SpellSlot.E].Cast(gapCloserEventArgs.Sender); } }); } }
private void Gapcloser_OnGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (!Enable) return; if (e.Sender.IsEnemy && e.Sender.InAutoAttackRange()) { if (HasGold) { Player.IssueOrder(GameObjectOrder.AttackUnit, e.Sender); } } }
private void AntiGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (Z["misc"]["misc.gc"].GetValue<MenuBool>().Value && W.IsReady() && Player.HealthPercent <= Z["misc"]["misc.gc.hp"].GetValue<MenuSlider>().Value && e.Sender.IsValidTarget()) { W.Cast(e.End); } }
/// <summary> /// Handles the OnGapCloser event of the Gapcloser control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Gapcloser.GapCloserEventArgs"/> instance containing the event data.</param> private void Gapcloser_OnGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (!e.Sender.IsValidTarget(Q.Range)) { return; } var useQ = Menu["Misc"]["QOnGapcloser"].GetValue<MenuBool>().Value; var useE = Menu["Misc"]["EOnGapcloser"].GetValue<MenuBool>().Value; if (useE && E.IsReady()) { E.Cast(e.Sender); } else if (useQ && Q.IsReady()) { Q.Cast(e.Sender); } }
static void AntiGapCloser(Object gcHero, Gapcloser.GapCloserEventArgs args) { if (args.IsDirectedToPlayer && args.End.Distance(Player.Position) < SpellManager.E.Range && SpellManager.E.IsReady() && SpellManager.Q.IsReady() && Config.Agc) { SpellManager.E.Cast(args.Sender); SpellManager.Q.Cast(args.End); } }
private void Gapcloser_OnGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (!Enable) return; if (e.Sender.IsEnemy && e.Sender.IsValidTarget(E.Range) && E.IsReady() && autointerrupt) { E.BadaoCast(e.Sender); } }
/// <summary> /// The anti gapcloser on on enemy gapcloser. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="gapCloserEventArgs"> /// The gap closer event args. /// </param> private void AntiGapcloserOnOnEnemyGapcloser(object sender, Gapcloser.GapCloserEventArgs gapCloserEventArgs) { if (!this.Menu["Misc"]["UseEGapcloser"].GetValue<MenuBool>().Value || !this.E.IsReady() || !gapCloserEventArgs.Sender.IsValidTarget(this.E.Range)) { return; } this.E.Cast(gapCloserEventArgs.Sender); }
private void Gapcloser_OnGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (!Enable) return; if (e.Sender.IsEnemy && E.IsReady() && autogapinter) { if (e.Sender.IsValidTarget(E.Range)) E.Cast(e.Sender.Position); if (StunAbleOrb.Any()) { var i = StunAbleOrb.First(x => x.Key.NetworkId == e.Sender.NetworkId); if (i.Value != null) E.Cast(i.Value.Position.ToVector2()); } } }
private static void GapcloserOnGapCloser(object sender, Gapcloser.GapCloserEventArgs e) { if (!e.Sender.IsValidTarget(E.Range)) { return; } if (E.IsReady() && Menu["Misc"]["UseEGapcloser"].GetValue<MenuBool>().Value) { E.CastOnUnit(e.Sender); } }