private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e) { if (!sender.IsEnemy || sender == null || e == null || !SpellsMenu.GetCheckBoxValue("rUseInt")) { return; } if (sender.IsValidTarget(SpellsManager.R.Range) && e.DangerLevel >= Intdanger) { SpellsManager.R.Cast(sender.Position); } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsEnemy || sender == null || e == null || !SpellsMenu.GetCheckBoxValue("rUseGap") || sender.Spellbook.CastEndTime > SpellsManager.R.CastDelay) { return; } if (sender.IsValidTarget(SpellsManager.R.Range)) { SpellsManager.R.Cast(sender.Position); } if (Azir.IsInRange(e.End, SpellsManager.R.Range) && e.End.IsInRange(Azir.ServerPosition, SpellsManager.R.Range)) { SpellsManager.R.Cast(e.End); } }
private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (!sender.IsEnemy || sender == null || e == null || !SpellsMenu.GetCheckBoxValue("rUseGap")) { return; } if (sender.IsValidTarget(SpellsManager.R.Range)) { Core.DelayAction(() => SpellsManager.R.Cast(sender.ServerPosition), (int)(sender.Spellbook.CastEndTime - Game.Time)); } if (Azir.IsInRange(e.End, SpellsManager.R.Range) && e.End.IsInRange(Azir.ServerPosition, SpellsManager.R.Range)) { Core.DelayAction( () => SpellsManager.R.Cast(Azir.ServerPosition.Extend(sender.ServerPosition, SpellsManager.R.Range).To3D()), (int)(sender.Spellbook.CastEndTime - Game.Time)); } }