private static void Gapcloser_OnGapcloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e) { if (sender.IsEnemy || sender.IsValid) { if (ChampionsMenu.CheckBox(ChampionsMenu.Misc, "Gapcloser")) { if (sender.IsValidTarget(Q.Range)) { var QPred = Q.GetPrediction(sender); if (QPred.HitChancePercent >= ChampionsMenu.Slider(ChampionsMenu.Principal, "QPred")) { Q.Cast(QPred.UnitPosition); } } } } }
private static void Interrupter_OnInterruptableSpell(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e) { if (sender.IsEnemy || sender.IsValid) { if (ChampionsMenu.CheckBox(ChampionsMenu.Misc, "Interrupter")) { if (sender.IsValidTarget(Q.Range)) { var QPred = Q.GetPrediction(sender); if (QPred.HitChancePercent >= ChampionsMenu.Slider(ChampionsMenu.Principal, "QPred")) { Q.Cast(QPred.UnitPosition); } } } } }