private static void Killteal() { var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical); if (Q.IsReady() && Q.CanCast(target)) { var prediction = Q.GetPrediction(target); if (target.IsValidTarget(Q.Range) && prediction.HitChancePercent >= pre["Qp"].Cast <Slider>().CurrentValue&& target.Health < UrDamage.Qmage(target)) { Q.Cast(prediction.CastPosition); } } }
private static void AutoR() { if (UtiR["Rmode"].Cast <ComboBox>().CurrentValue == 0) { var target = TargetSelector.GetTarget(R.Range, DamageType.Physical); if (UtiR["useR"].Cast <CheckBox>().CurrentValue) { var prediction = R.GetPrediction(target); if (prediction.HitChancePercent >= pre["Rp"].Cast <Slider>().CurrentValue&& target.Health < UrDamage.Rmage(target)) { if (target.IsValidTarget(R.Range) && R.IsReady()) { R.Cast(prediction.CastPosition); } } } } }