private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { if (sender.IsMe && Args.Slot == SpellSlot.E && Orbwalker.Mode != OrbwalkingMode.None) { Orbwalker.ResetAutoAttackTimer(); } }
private static void GetCooldowns(SpellBookCastSpellEventArgs args) { if (cougarForm) { if (args.Slot == SpellSlot.Q) { CQtimer = Game.ClockTime + CalculateCd(5); } if (args.Slot == SpellSlot.W) { CWtimer = Game.ClockTime + CalculateCd(5); } if (args.Slot == SpellSlot.E) { CEtimer = Game.ClockTime + CalculateCd(5); } } else { if (args.Slot == SpellSlot.Q) { HQtimer = Game.ClockTime + CalculateCd(HumanQcd[Player.SpellBook.GetSpell(SpellSlot.Q).Level - 1]); } if (args.Slot == SpellSlot.W) { HWtimer = Game.ClockTime + CalculateCd(HumanWcd[Player.SpellBook.GetSpell(SpellSlot.W).Level - 1]); } if (args.Slot == SpellSlot.E) { HEtimer = Game.ClockTime + CalculateCd(HumanEcd[Player.SpellBook.GetSpell(SpellSlot.E).Level - 1]); } } }
public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe) { GetCooldowns(args); } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe) { switch (args.Slot) { case SpellSlot.Q: if (!Interrupt && UtilityClass.Player.GetBuffCount("XayahPassiveActive") >= 3 && MenuClass.Miscellaneous["feathersweaving"].As <MenuBool>().Enabled) { args.Process = false; } break; case SpellSlot.W: if (UtilityClass.Player.GetBuffCount("XayahPassiveActive") >= 3 && MenuClass.Miscellaneous["feathersweaving"].As <MenuBool>().Enabled) { args.Process = false; } break; } } }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe && SpellManager.Q.Ready && args.Slot == SpellSlot.Recall && MenuConfig.MainMenu["Stealth"].Enabled) { SpellManager.Q.Cast(); } }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { if (sender.IsMe) { switch (ObjectManager.GetLocalPlayer().ChampionName) { case "Lucian": case "Twitch": { if (Args.Slot == SpellSlot.R) { if (ObjectManager.GetLocalPlayer().IsDead || ObjectManager.GetLocalPlayer().IsRecalling() || ObjectManager.GetLocalPlayer().IsInFountainRange() || !ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.Enabled"].Enabled) { return; } if (ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.YoumuusEnabled"].Enabled && Youmuus.IsMine && Youmuus.Ready) { Youmuus.Cast(); } } } break; } } }
public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (args.Slot == SpellSlot.R && sender.IsMe) { reeeeeeeeeSTOPusingE = true; } }
/// <summary> /// Called on spell cast. /// </summary> /// <param name="sender">The SpellBook.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe) { switch (ImplementationClass.IOrbwalker.Mode) { case OrbwalkingMode.Combo: switch (args.Slot) { case SpellSlot.Q: if (Game.ClockTime - LastWTime < 0.75) { args.Process = false; } break; case SpellSlot.W: if (SpellClass.E.Ready && UtilityClass.Player.Mana < SpellSlot.W.GetManaCost() + SpellSlot.E.GetManaCost()) { args.Process = false; } else { LastWTime = Game.ClockTime; } break; } break; } } }
private static void SpellBook_OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs e) { if (sender.IsMe && e.Slot == SpellSlot.Q) { Orbwalker.Implementation.ResetAutoAttackTimer(); Orbwalker.Implementation.Move(Game.CursorPos); } }
/// <summary> /// Called on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { /* * if (sender.IsMe && args.Slot == SpellSlot.Q) * { * LastRTime = Game.ClockTime; * }*/ }
/// <summary> /// Fired then a spell is casted. /// </summary> private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs spellBookCastSpellEventArgs) { if (sender.IsMe) { LastCastPacketSent = new LastCastPacketSentEntry(spellBookCastSpellEventArgs.Slot, Environment.TickCount, spellBookCastSpellEventArgs.Target is Obj_AI_Base ? spellBookCastSpellEventArgs.Target.NetworkId : 0); } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe && UtilityClass.Player.HasBuff("akaliwstealth") && MenuClass.Miscellaneous["staystealthsp"].As <MenuBool>().Enabled) { args.Process = false; } }
private static void auto_baseQ(Obj_AI_Base sender, SpellBookCastSpellEventArgs eventArgs) { if (eventArgs.Slot != SpellSlot.Recall || !_q.Ready || !Main["misc"]["autob"].As <MenuBool>().Enabled) { return; } _q.Cast(); DelayAction.Queue((int)Twitch.SpellBook.GetSpell(SpellSlot.Q).SpellData.SpellCastTime + 300, () => Twitch.SpellBook.CastSpell(SpellSlot.Recall)); }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe) { if (this.IsUltimateShooting()) { args.Process = false; } } }
private void Game_OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (!sender.IsMe) { return; } if (TestMenu["TestPath"].Enabled) { RenderObjects.Add(new RenderCircle(args.End.To2D(), 500)); } }
internal override void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs e) { if (sender.IsMe) { if ((e.Slot == SpellSlot.Q || e.Slot == SpellSlot.W || e.Slot == SpellSlot.E || e.Slot == SpellSlot.Item1 || e.Slot == SpellSlot.Item2 || e.Slot == SpellSlot.Item3 || e.Slot == SpellSlot.Item4 || e.Slot == SpellSlot.Item5 || e.Slot == SpellSlot.Item6) && Player.HasBuff("malzaharrsound")) { e.Process = false; } } }
private void OnSpellCast(Obj_AI_Base sender, SpellBookCastSpellEventArgs e) { if (!sender.IsMe) { return; } if (e.Slot == SpellSlot.Recall && Variables.Spells[SpellSlot.Q].Ready) { DelayAction.Queue( (int)ObjectManager.GetLocalPlayer().SpellBook.GetSpell(SpellSlot.Q).SpellData.SpellCastTime + 300, () => ObjectManager.GetLocalPlayer().SpellBook.CastSpell(SpellSlot.Recall)); } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe) { switch (args.Slot) { case SpellSlot.Q: var safeQ = MenuClass.Spells["q"]["customization"]["safeq"]; if (safeQ != null && UtilityClass.Player.CountEnemyHeroesInRange(UtilityClass.Player.AttackRange) > safeQ.As <MenuSlider>().Value) { args.Process = false; } break; case SpellSlot.W: if (ObjectManager.Get <GameObject>().Any(m => m.Distance(args.End) <= SpellClass.W.Width && m.Name.Equals("caitlyn_Base_yordleTrap_idle_green.troy"))) { args.Process = false; } // Logic to not cast Trap if enemy has been afflicted by it less than 4 seconds ago and he's still in the area. // Note: The time the minion takes to actually be cancelled by the ObjectManager is exactly 4 seconds, that's why i check for its presence. // maybe a tiny bit more, but the check is solid. var nearestEnemy = GameObjects.EnemyHeroes.MinBy(t => t.Distance(args.End)); if (ObjectManager.Get <Obj_AI_Minion>().Any(m => m.IsAlly && m.UnitSkinName == "CaitlynTrap" && m.Distance(nearestEnemy) <= SpellClass.W.Width && nearestEnemy.HasBuff("caitlynyordletrapsight"))) { args.Process = false; } break; case SpellSlot.E: var safeE = MenuClass.Spells["e"]["customization"]["safee"]; if (safeE != null && UtilityClass.Player.ServerPosition.Extend(args.End, -400f).CountEnemyHeroesInRange(UtilityClass.Player.AttackRange) > safeE.As <MenuSlider>().Value) { args.Process = false; } if (Game.TickCount - UtilityClass.LastTick >= 1000 && ImplementationClass.IOrbwalker.Mode == OrbwalkingMode.None && MenuClass.Miscellaneous["reversede"].As <MenuBool>().Enabled) { UtilityClass.LastTick = Game.TickCount; SpellClass.E.Cast(UtilityClass.Player.ServerPosition.Extend(Game.CursorPos, -SpellClass.E.Range)); } break; } } }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { try { if (sender.IsMe && Args.Slot == SpellSlot.Q) { lastQTime = Game.TickCount; } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnCastSpell." + ex); } }
private void Game_OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (!sender.IsMe) { return; } if (testMenu["TestPath"].As <MenuBool>().Enabled) { RenderObjects.Add(new RenderCircle(args.End.To2D(), 500)); } lastSpellCastTimeEx = EvadeUtils.TickCount; }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { if (sender.IsMe) { if (Args.Slot == SpellSlot.Q) { Args.Process = Game.TickCount - lastETime >= 750 + Game.Ping; } if (Args.Slot == SpellSlot.E) { Args.Process = Game.TickCount - lastQTime >= 750 + Game.Ping; } } }
private void SpellBook_OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs e) { if (!sender.IsMe) { return; } if (e.Slot == SpellSlot.Recall && Q.Ready && Menu["misc"]["stealthrecall"].Enabled) { Q.Cast(); DelayAction.Queue((int)Player.SpellBook.GetSpell(SpellSlot.Q).SpellData.SpellCastTime + 300, () => Player.SpellBook.CastSpell(SpellSlot.Recall)); } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe && BallPosition != null && args.Slot == SpellSlot.R) { var validTargets = GameObjects.EnemyHeroes.Where(t => !Invulnerable.Check(t, DamageType.Magical, false) && t.IsValidTarget(SpellClass.R.Width - t.BoundingRadius - SpellClass.R.Delay * t.BoundingRadius, false, false, (Vector3)BallPosition)); if (!validTargets.Any()) { args.Process = false; } } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe) { if (args.Slot == SpellSlot.R && !IsUltimateShooting()) { ImplementationClass.IOrbwalker.MovingEnabled = false; } else if (IsUltimateShooting()) { args.Process = false; } } }
internal override void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs e) { if (RootMenu["combo"]["anim"].Enabled) { if (e.Slot == SpellSlot.W && Q.Ready) { hmm = true; meowmeowmeow = Game.TickCount + 50; } } if (e.Slot == SpellSlot.E) { delayyyyyyyyy = Game.TickCount + 300; } }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { if (sender.IsMe) { if (Args.Slot == SpellSlot.Q || Args.Slot == SpellSlot.W || Args.Slot == SpellSlot.E) { havePassive = true; lastCastTime = Game.TickCount; } if (Args.Slot == SpellSlot.E && Orbwalker.Mode != OrbwalkingMode.None) { Orbwalker.ResetAutoAttackTimer(); } } }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { if (sender.IsMe) { if (Args.Slot == SpellSlot.Q) { if (Orbwalker.Mode != OrbwalkingMode.None) { Player.IssueOrder(OrderType.MoveTo, Game.CursorPos); } } else if (Args.Slot == SpellSlot.E) { lastETime = Game.TickCount; } } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { if (sender.IsMe && args.Slot == SpellSlot.W && !IsHoldingForceOfWillObject()) { if (Game.TickCount - UtilityClass.LastTick >= 300) { UtilityClass.LastTick = Game.TickCount; HoldedSphere = args.Target; } else { args.Process = false; } } }
private static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs Args) { try { if (sender.IsMe) { if (Args.Slot == SpellSlot.Q || Args.Slot == SpellSlot.W || Args.Slot == SpellSlot.E) { LastCastTime = Game.TickCount; Me.IssueOrder(OrderType.MoveTo, Me.ServerPosition.Extend(Game.CursorPos, 200)); } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnCastSpell." + ex); } }
/// <summary> /// Fired on spell cast. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The <see cref="SpellBookCastSpellEventArgs" /> instance containing the event data.</param> public static void OnCastSpell(Obj_AI_Base sender, SpellBookCastSpellEventArgs args) { /// <summary> /// The 'Preserve Mana' Logic. /// </summary> if (sender.IsMe && UtilityClass.SpellSlots.Contains(args.Slot)) { float manaToPreserve = 0; var spellBook = UtilityClass.Player.SpellBook; // ReSharper disable once LoopCanBeConvertedToQuery foreach (var slot in UtilityClass.SpellSlots) { var spellSlot = spellBook.GetSpell(slot); if ((spellSlot.State == SpellState.Ready || spellSlot.State == SpellState.Cooldown && spellSlot.GetRemainingCooldownTime() <= 5) && MenuClass.PreserveMana[slot.ToString().ToLower()].As <MenuBool>().Enabled) { manaToPreserve += spellSlot.Cost; } } if (UtilityClass.Player.Mana - spellBook.GetSpell(args.Slot).Cost < manaToPreserve) { args.Process = false; } /// <summary> /// The 'Preserve Spells' Logic. /// </summary> if (ImplementationClass.IOrbwalker.Mode == OrbwalkingMode.Combo) { var target = Extensions.GetBestEnemyHeroTargetInRange(UtilityClass.Player.GetSpell(args.Slot).SpellData.CastRange); if (target.IsValidTarget(UtilityClass.Player.GetFullAttackRange(target)) && target.GetRealHealth() <= UtilityClass.Player.GetAutoAttackDamage(target) * MenuClass.PreserveSpells[args.Slot.ToString().ToLower()].As <MenuSlider>().Value) { args.Process = false; } } } }