private static void Game_OnUpdate(EventArgs args) { if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear) { return; } if (BadaoMainVariables.R.Instance.SData.Name == "JhinRShot") { return; } if (!BadaoJhinHelper.CanLaneClearMana()) { return; } if (BadaoJhinHelper.UseQLane()) { var info = BadaoJhinHelper.GetQInfo(); var target = info.Where(x => x.BounceTargets.Count() >= 3) .OrderByDescending(x => x.DeathCount).FirstOrDefault(); if (target != null) { BadaoMainVariables.Q.Cast(target.QTarget); } } }
private static void Game_OnUpdate(EventArgs args) { if (BadaoMainVariables.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Mixed) { return; } if (BadaoMainVariables.R.Instance.SData.Name == "JhinRShot") { return; } if (!BadaoJhinHelper.CanHarassMana()) { return; } if (BadaoJhinHelper.UseQHarass()) { var info = BadaoJhinHelper.GetQInfo(); var target = info.Where(x => x.BounceTargets.LastOrDefault(y => y.Target is AIHeroClient) != null) .OrderBy(x => x.BounceTargets.LastOrDefault(y => y.Target is AIHeroClient).DeathCount) .ThenBy(x => x.BounceTargets.IndexOf(x.BounceTargets.LastOrDefault(y => y.Target is AIHeroClient))) .LastOrDefault(); if (target != null) { BadaoMainVariables.Q.Cast(target.QTarget); } } if (BadaoJhinHelper.UseWHarass()) { var target = TargetSelector.GetTarget(BadaoMainVariables.W.Range, TargetSelector.DamageType.Physical); if (target.BadaoIsValidTarget()) { var x = BadaoMainVariables.W.GetPrediction(target).CastPosition; var y = BadaoMainVariables.W.GetPrediction(target).CollisionObjects; if (!y.Any(z => z.IsChampion()) && ObjectManager.Player.Distance(x) <= BadaoMainVariables.W.Range) { BadaoMainVariables.W.Cast(x); } else { foreach (var hero in HeroManager.Enemies.Where(a => a.BadaoIsValidTarget() && BadaoJhinHelper.HasJhinPassive(a))) { var b = BadaoMainVariables.W.GetPrediction(hero).CastPosition; var c = BadaoMainVariables.W.GetPrediction(hero).CollisionObjects; if (!c.Any(d => d.IsChampion()) && ObjectManager.Player.Distance(b) <= BadaoMainVariables.W.Range) { if (BadaoMainVariables.W.Cast(x)) { break; } } } } } } if (BadaoJhinHelper.UseEHarass()) { var target = TargetSelector.GetTarget(BadaoMainVariables.E.Range, TargetSelector.DamageType.Physical); if (target.BadaoIsValidTarget()) { BadaoMainVariables.E.Cast(target.Position); } } }