private static void OrbwalkingBeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Target is AIHeroClient) { foreach (var item in ItemDb.Where( i => i.Value.ItemType == EnumItemType.OnTarget && i.Value.TargetingType == EnumItemTargettingType.EnemyHero && i.Value.Item.IsReady())) { item.Value.Item.Cast(); } } }
private static void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (MenuIni.SubMenu("Harass").Item("HUse_AA_to_minion").GetValue <bool>()) { return; } else { if (args.Target.Type == GameObjectType.obj_AI_Minion) { args.Process = false; } } }
public static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { try { } catch (Exception) { if (NowTime() > ErrorTime) { Chat.Print(ChampName + " in FreshBooster isn't Load. Error Code 10"); ErrorTime = TickCount(10000); } } }
private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (Menu.Item("nightmoon.e.forcetarget").GetValue <bool>()) { if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) { foreach (var enemy in HeroManager.Enemies.Where(enemy => enemy.HasBuff("tristanaechargesound"))) { TargetSelector.SetTarget(enemy); return; } } } if (args.Unit.IsMe && Orbwalking.InAutoAttackRange(args.Target)) { switch (Orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: { if (Menu.Item("nightmoon.q.onlye").GetValue <bool>() && CanCastQ()) { Obj_AI_Hero Target = args.Target.Type == GameObjectType.obj_AI_Hero ? (Obj_AI_Hero)args.Target : null; if (Target.HasBuff("tristanaechargesound") || Target.HasBuff("tristanaecharge")) { Q.Cast(); } } else if (!Menu.Item("nightmoon.q.onlye").GetValue <bool>() && CanCastQ()) { Q.Cast(); } break; } case Orbwalking.OrbwalkingMode.LaneClear: { if (Menu.Item("nightmoon.q.jc").GetValue <bool>()) { if (MinionManager.GetMinions(Orbwalking.GetRealAutoAttackRange(ObjectManager.Player), MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth).Any(x => x.NetworkId == args.Target.NetworkId) && CanCastQ()) { Q.Cast(); } } break; } } } }
private void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (W.IsReady() && Config.Item("autoW", true).GetValue <bool>() && Range && args.Target is Obj_AI_Hero) { if (Program.Combo) { W.Cast(); } else if (args.Target.Position.Distance(Player.Position) < 500) { W.Cast(); } } }
static void OrbwalkingOnBeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (!(args.Target is AIHeroClient)) { return; } var t = (AIHeroClient)args.Target; if (t.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null) + 95) && CommonBuffs.MegaQActive && Q.GetDamage(t) < t.Health) { Q.Cast(); } }
private void CancelAA(Orbwalking.BeforeAttackEventArgs args) { if (args.Target == null) { return; } if (champion.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { switch (Mode) { case CommonDisableAAMode.Always: args.Process = false; break; case CommonDisableAAMode.Never: args.Process = true; break; case CommonDisableAAMode.SomeSkillReady: if (champion.Spells.SomeSkillReady()) { args.Process = false; } break; case CommonDisableAAMode.HarasComboReady: if (champion.Spells.HarasReady()) { args.Process = false; } break; case CommonDisableAAMode.FullComboReady: if (champion.Spells.ComboReady()) { args.Process = false; } break; } } else { if (args.Target is Obj_AI_Base && ((Obj_AI_Base)args.Target).IsMinion && !CanUseAA()) { args.Process = false; } } }
private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Unit.IsMe) { switch (MenuProvider.Orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: if (W.isReadyPerfectly()) { if (MenuProvider.Champion.Combo.UseW) { if (Orbwalking.InAutoAttackRange(args.Target)) { W.Cast(); } } } break; } if (MenuProvider.Champion.Misc.getBoolValue("Making new AutoAttack Target for Passive (LoveTap)")) { if (args.Target.Type == GameObjectType.obj_AI_Hero) { if (args.Target.Health + args.Target.PhysicalShield > ObjectManager.Player.GetAutoAttackDamage(args.Target as Obj_AI_Base, true) * 2) { if (args.Target.NetworkId == LoveTapTargetNetworkId) { var newTarget = HeroManager.Enemies.Where(x => x.IsValidTarget() && Orbwalking.InAutoAttackRange(x) && x.NetworkId != LoveTapTargetNetworkId).OrderByDescending(x => TargetSelector.GetPriority(x)).FirstOrDefault(); if (newTarget != null) { args.Process = false; MenuProvider.Orbwalker.ForceTarget(newTarget); } else { MenuProvider.Orbwalker.ForceTarget(null); } } } } } else { MenuProvider.Orbwalker.ForceTarget(null); } } }
private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (Variables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo) { return; } if (args.Unit.IsMe && Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { if (ItemData.Youmuus_Ghostblade.GetItem().IsReady()) { ItemData.Youmuus_Ghostblade.GetItem().Cast(); } } }
private static void BeforeAttack(Orbwalking.BeforeAttackEventArgs Args) { if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && Args.Target is Obj_AI_Hero && Args.Target.IsValidTarget(600)) { if (Menu.GetBool("ComboAA.Disable") && (W.IsReady() || E.IsReady())) { Args.Process = false; } if (Menu.GetKey("ComboAA.DisableLevel")) { Args.Process = false; } } }
static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Target is AIHeroClient && Player.HasBuff("asheqcastready")) { if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && SharpShooter.Menu.Item("comboUseQ", true).GetValue <Boolean>()) { Q.Cast(); } if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed && SharpShooter.Menu.Item("harassUseQ", true).GetValue <Boolean>()) { Q.Cast(); } } }
private static void OrbwalkingBeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (Menu.MenuKeys.Item("Keys.Lane").GetValue <KeyBind>().Active) { var minion = args.Target as Obj_AI_Minion; AttackingToMinion = minion != null; if (minion != null) { TargetMinionNetworkId = minion.NetworkId; AttackingToSiegeMinion = minion.SkinName == "SRU_ChaosMinionSiege" || minion.SkinName == "SRU_ChaosMinionSuper"; } } }
private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (!Variables.AssassinateKey.GetValue <KeyBind>().Active) { return; } if (args.Unit.IsMe) { if (ItemData.Youmuus_Ghostblade.GetItem().IsReady()) { ItemData.Youmuus_Ghostblade.GetItem().Cast(); } } }
private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear) { return; } if (args.Target.Team != GameObjectTeam.Neutral) { return; } if (BadaoShenHelper.UseQLaneClear()) { BadaoMainVariables.Q.Cast(); } }
private void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (Config.Item("visibleR", true).GetValue <bool>() && Player.HasBuff("vaynetumblefade") && Player.CountEnemiesInRange(800) > 1) { args.Process = false; } foreach (var target in Program.Enemies.Where(target => target.IsValidTarget(800) && GetWStacks(target) >= 1)) { if (Orbwalking.InAutoAttackRange(target) && args.Target.Health > 3 * Player.GetAutoAttackDamage(target)) { Orbwalker.ForceTarget(target); } } }
private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { args.Process = !_spellQ.IsReady(); } else if (_orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LastHit) { bool farmQ = _menu.Item("farmQ").GetValue <StringList>().SelectedIndex == 0 || _menu.Item("farmQ").GetValue <StringList>().SelectedIndex == 2; args.Process = !(farmQ && _spellQ.IsReady() && GetManaPercent() >= _menu.Item("farmQPercent").GetValue <Slider>().Value); } }
private void OW(Orbwalking.BeforeAttackEventArgs args) { if (ShouldGetExecuted() && ObjectManager.Player.Buffs.Any(m => m.Name.ToLower() == "vaynetumblefade")) { if (ObjectManager.Player.CountEnemiesInRange(1100f) <= 1 || ObjectManager.Player.CountEnemiesInRange(1100f) < Variables.Menu.Item("dz191.vhr.misc.tumble.noaa.enemies").GetValue <Slider>().Value || ObjectManager.Player.HealthPercent > Variables.Menu.Item("dz191.vhr.misc.tumble.noaastealthex.hp").GetValue <Slider>().Value) { return; } args.Process = false; } }
private void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (E.IsReady() && Sheen() && args.Target.IsValid <Obj_AI_Hero>() && Config.Item("autoE").GetValue <bool>()) { if (Program.Combo && Player.Mana > EMANA + RMANA) { E.Cast(args.Target.Position); Program.debug("ss"); } if (!Q.IsReady() && !R1.IsReady() && args.Target.Health < Player.FlatPhysicalDamageMod * 2) { E.Cast(); } } }
public override void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (GetValue <bool>("Misc.UseQ.Inhibitor") && args.Target is Obj_BarracksDampener && Q.IsReady()) { if (((Obj_BarracksDampener)args.Target).Health >= Player.TotalAttackDamage * 3) { Q.Cast(); } } if (GetValue <bool>("Misc.UseQ.Nexus") && args.Target is Obj_HQ && Q.IsReady()) { Q.Cast(); } var unit = args.Target as Obj_AI_Turret; if (unit != null) { if (GetValue <bool>("UseEM") && E.IsReady()) { if (((Obj_AI_Turret)args.Target).Health >= Player.TotalAttackDamage * 3) { E.CastOnUnit(unit); } } if (GetValue <bool>("Misc.UseQ.Turret") && Q.IsReady()) { if (((Obj_AI_Turret)args.Target).Health >= Player.TotalAttackDamage * 3) { Q.Cast(); } } } if (args.Target is Obj_AI_Hero) { var t = args.Target as Obj_AI_Hero; if (t.IsValidTarget(Orbwalking.GetRealAutoAttackRange(null)) && ComboActive) { var useQ = Q.IsReady() && GetValue <bool>("UseQC"); if (useQ) { Q.CastOnUnit(Player); } } } }
private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Unit.IsMe) { if (Orbwalking.InAutoAttackRange(args.Target)) { switch (MenuProvider.Orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: { if (MenuProvider.Champion.Combo.UseQ) { if (ObjectManager.Player.HasBuff("asheqcastready")) { if (_q.IsReadyPerfectly()) { _q.Cast(); } } } break; } case Orbwalking.OrbwalkingMode.LaneClear: { if (MenuProvider.Champion.Jungleclear.UseQ) { if (ObjectManager.Player.HasBuff("asheqcastready")) { if (_q.IsReadyPerfectly()) { if ( MinionManager.GetMinions( Orbwalking.GetRealAutoAttackRange(ObjectManager.Player), MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth) .Any(x => x.NetworkId == args.Target.NetworkId)) { _q.Cast(); } } } } break; } } } } }
static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { args.Process = Config.Item("UseAACombo").GetValue <bool>(); if (args.Target is Obj_AI_Base) { var target = args.Target as Obj_AI_Base; if (E.IsReady() && target.HasBuffOfType(BuffType.Poison) && target.IsValidTarget(E.Range)) { args.Process = false; } } } }
private void DisableAAToFarm(Orbwalking.BeforeAttackEventArgs args) { if (args.Target is Obj_AI_Minion && (Champion.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear || Champion.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LastHit || Champion.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) && !annie.SaveStun() && annie.CanFarm() && annie.GetParamBool("useqtofarm") && annie.Player.Mana > annie.Spells.Q.Instance.SData.Mana && Champion.Spells.Q.IsKillable((Obj_AI_Base)args.Target) && Champion.Spells.Q.Instance.CooldownExpires - Game.Time < 0.3f) { args.Process = false; } }
private static void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Target is Obj_Building || args.Target is Obj_HQ || args.Target is Obj_Barracks || args.Target is Obj_BarracksDampener) { return; } if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { Combo.BeforeAttackCombo(args); } if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) { Harass.BeforeAttackHarass(args); } }
private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Unit.IsMe) { if (Picking) { if (MenuProvider.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { if (_cardiNeed == Cards.Gold) { args.Process = false; } } } } }
static void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (Misc.Active("Farm.Disableauto") && args.Target.Type == GameObjectType.obj_AI_Minion && SorakaMenu.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LastHit) { var alliesinrange = HeroManager.Allies.Count(x => !x.IsMe && x.Distance(Player) <= FarmRange); if (alliesinrange > 0) { args.Process = false; } } if (Misc.Active("Combo.Disableauto") && SorakaMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { args.Process = false; } }
/// <summary> /// Raises the <see cref="E:BeforeAttack" /> event. /// </summary> /// <param name="args">The <see cref="Orbwalking.BeforeAttackEventArgs" /> instance containing the event data.</param> private void OnBeforeAttack(Orbwalking.BeforeAttackEventArgs args) { var mode = this.Orbwalker.ActiveMode; var aaCombo = Config.Instance["AutoAttackCombo"]; var aaHarass = Config.Instance["AutoAttackHarass"]; if (mode == Orbwalking.OrbwalkingMode.Combo && args.Target.Type == GameObjectType.AIHeroClient) { args.Process = aaCombo; } if (mode == Orbwalking.OrbwalkingMode.Mixed && args.Target.Type == GameObjectType.AIHeroClient) { args.Process = aaHarass; } }
private void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Unit.IsMe && args.Target.IsEnemy && args.Unit.HasBuff("vaynetumblefade")) { var stealthtime = Config.Item("q.stealth").GetValue <Slider>().Value; var stealthbuff = args.Unit.GetBuff("vaynetumblefade"); if (stealthbuff.EndTime - Game.Time > stealthbuff.EndTime - stealthbuff.StartTime - stealthtime / 1000) { args.Process = false; } } else { args.Process = true; } }
private void Orbwalking_BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (args.Unit.IsMe) { if (_w.IsReadyPerfectly() && _w.Instance.Name != "PickACard") { if (MenuProvider.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo) { if (_cardiNeed == Cards.Gold) { args.Process = false; } } } } }
private static void OrbwalkingBeforeAttack(Orbwalking.BeforeAttackEventArgs args) { var target = args.Target; if (!target.IsValidTarget() || !(args.Target is Obj_AI_Base) || Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo) { return; } var t = (Obj_AI_Base)target; if (spells[Spells.E].IsReady() && t.HasBuffOfType(BuffType.Poison) && target.IsValidTarget(spells[Spells.E].Range)) { args.Process = false; } }
private static void BeforeAttack(Orbwalking.BeforeAttackEventArgs args) { if (IreliaMenu.Config.Item("combo.w").GetValue <bool>() && Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && args.Target != null && args.Target.Type == GameObjectType.AIHeroClient && args.Target.IsValidTarget() || IreliaMenu.Config.Item("harass.w").GetValue <bool>() && Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed && args.Target != null && args.Target.Type == GameObjectType.AIHeroClient && args.Target.IsValidTarget()) { Spells.W.Cast(); } }