private static void OnCombo() { var enemiesq = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range); var enemiesr = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= R.Range); var enemiesw = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= W.Range); var enemies = EntityManager.Heroes.Enemies.OrderByDescending (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range); var target = TargetSelector.GetTarget(1900, DamageType.Magical); if (R.IsReady() && target.IsValidTarget(R.Range) && !target.IsInvulnerable && target.CountEnemiesInRange(R.Range) <= MariagiospaldaMenu.ComboR2()) { foreach (var ultenemies in enemiesr) { var useR = MariagiospaldaMenu.MyCombo["combo.r" + ultenemies.ChampionName].Cast <CheckBox>().CurrentValue; if (useR) { R.Cast(ultenemies); } } } if (R.IsReady() && target.IsValidTarget(R.Range) && target.CountEnemiesInRange(R.Range) <= MariagiospaldaMenu.ComboR2()) { R.Cast(Player); } if (E.IsReady() && target.IsValidTarget(E.Range)) { foreach (var eenemies in enemies) { var useE = MariagiospaldaMenu.MyCombo["combo.e" + eenemies.ChampionName].Cast <CheckBox>().CurrentValue; if (useE) { CastE(); } } } if (Q.IsReady() && target.IsValidTarget(Q1.Range)) { ExtendedQ(); } if (Q.IsReady() && target.IsValidTarget(Q.Range)) { foreach (var qenemies in enemiesq) { var useQ = MariagiospaldaMenu.MyCombo["combo.Q" + qenemies.ChampionName].Cast <CheckBox>().CurrentValue; var predQ = Q.GetPrediction(qenemies); if (useQ) { if (predQ.HitChancePercent >= MariagiospaldaMenu.ComboQH()) { { Q.Cast(predQ.CastPosition); } } } } } if (W.IsReady() && target.IsValidTarget(W.Range)) { foreach (var jumpenemies in enemiesw) { var useW = MariagiospaldaMenu.MyCombo["combo.w" + jumpenemies.ChampionName].Cast <CheckBox>().CurrentValue; if (useW) { W.Cast(); } } } if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >= MariagiospaldaMenu.YoumusEnemies() || Player.HealthPercent >= MariagiospaldaMenu.ItemsYoumuShp()) && MyActivator.Youmus.IsReady() && MariagiospaldaMenu.Youmus() && MyActivator.Youmus.IsOwned()) { MyActivator.Youmus.Cast(); return; } if (Player.HealthPercent <= MariagiospaldaMenu.BilgewaterHp() && MariagiospaldaMenu.Bilgewater() && MyActivator.Bilgewater.IsReady() && MyActivator.Bilgewater.IsOwned()) { MyActivator.Bilgewater.Cast(target); return; } if (Player.HealthPercent <= MariagiospaldaMenu.BotrkHp() && MariagiospaldaMenu.Botrk() && MyActivator.Botrk.IsReady() && MyActivator.Botrk.IsOwned()) { MyActivator.Botrk.Cast(target); } if (Player.HealthPercent <= MariagiospaldaMenu.ZhonyaHP() && MariagiospaldaMenu.Zhonya() && Player.CountEnemiesInRange(800) >= MariagiospaldaMenu.ZhonyaEnemies() && MyActivator.Zhonya.IsReady() && MyActivator.Zhonya.IsOwned()) { MyActivator.Zhonya.Cast(); } }