private static void ManuelR() { if (!_combo["r"].Cast <KeyBind>().CurrentValue || !_r.IsReady()) { return; } { var prophecyR = EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(_r.Range) && !SpellBuff(x) && !SpellShield(x) && !EntityManager.Heroes.Enemies.Where(y => y.NetworkId != x.NetworkId) .Any(z => z.IsValidTarget() && new Geometry.Polygon.Rectangle(Caitlyn.Position, x.Position, 400).IsInside(z.ServerPosition))); var hedefR = TargetSelector.GetTarget(prophecyR, DamageType.Physical); if (hedefR == null) { return; } if (Caitlyn.CountEnemyHeroesInRangeWithPrediction(700, 600) == 0) { _r.Cast(hedefR); } } }
private static void AutoKillR() { var autoKill = EntityManager.Heroes.Enemies.Where(x => x.IsValidTarget(_r.Range) && !SpellBuff(x) && !SpellShield(x)); foreach (var autoKillTarget in autoKill.Where(x => TotalHealth(x) < RDamage(x) && !Caitlyn.IsInAutoAttackRange(x) && !(Caitlyn.CountEnemyHeroesInRangeWithPrediction(600, 350) >= 1) && _r.IsReady() && _r.IsInRange(x) && !Caitlyn.IsUnderEnemyturret())) { _r.Cast(autoKillTarget); } }