public static void RCast() { Ignite = Player.GetSpellSlot("summonerdot"); var target = TargetSelector.GetTarget(R.Range); if (Overkillcheck(target) > target.Health) { return; } if (Config["combo"]["UseRF"].GetValue <MenuBool>().Value) { if (Rdmg(target) > target.Health && R.GetPrediction(target).Hitchance >= PredictionR()) { R.Cast(target); if (Config["misc"]["rsound"].GetValue <MenuBool>().Value) { Soundplayer.PlaySound(welcome); } } } //Also check if enemy as a target works better () probably will work better I guess since you find the best enemy with the most hitcounts foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>() .Where( ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible && ene.Distance(Player.Position) <= R.Range)) { if (Config["combo"]["useraoe"].GetValue <MenuBool>().Value) { if (R.IsReady() && R.GetPrediction(enemy).Hitchance >= PredictionR() && R.GetPrediction(enemy).AoeHitCount >= Config["combo"]["raoeslider"].GetValue <MenuSlider>().Value) { R.Cast(enemy); if (Config["misc"]["rsound"].GetValue <MenuBool>().Value) { Soundplayer.PlaySound(welcome); } } } } }
public static void Killsteal() { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where( ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible && ene.Distance(Player.Position) <= R.Range)) { var collision = Q.GetCollision(ObjectManager.Player.ServerPosition.ToVector2(), new List <Vector2> { Q.GetPrediction(enemy).CastPosition.ToVector2() }); var getcollision = collision.Where(x => !(x is Obj_AI_Hero)).Count(x => x.IsMinion); if (Config["combo"]["UseQKS"].GetValue <MenuBool>().Value&& Q.IsReady() && enemy.Health < Qdmg(enemy) && getcollision <= 1 && Q.GetPrediction(enemy).Hitchance >= PredictionQ()) { Q.Cast(enemy); } if (Config["combo"]["UseEKS"].GetValue <MenuBool>().Value&& E.IsReady() && enemy.Health < Edmg(enemy) && E.GetPrediction(enemy).Hitchance >= PredictionE()) { E.Cast(enemy); } if (Overkillcheck(enemy) > enemy.Health) { return; } if (R.IsReady() && enemy.Health < Rdmg(enemy) && Config["combo"]["UseRKS"].GetValue <MenuBool>().Value&& R.GetPrediction(enemy).Hitchance >= PredictionR()) { R.Cast(enemy); if (Config["misc"]["rsound"].GetValue <MenuBool>().Value) { Soundplayer.PlaySound(welcome); } } } }