Exemplo n.º 1
0
 private static void AutoR()
 {
     if (Comb["ModoR"].Cast <ComboBox>().CurrentValue == 0)
     {
         var target = TargetSelector.GetTarget(R.Range, DamageType.Physical);
         if (Comb["Rf"].Cast <CheckBox>().CurrentValue)
         {
             if (target != null && target.Health < SpellDamage.Rmage(target))
             {
                 if (!target.IsInRange(_Player, R.Range) && R.IsReady())
                 {
                     return;
                 }
                 {
                     R.Cast(target);
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
        private static void Killteal()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (Misc["Ks"].Cast <CheckBox>().CurrentValue)
            {
                if (Q.IsReady() && Q.CanCast(target))
                {
                    var prediction = W.GetPrediction(target);
                    if (target.IsValidTarget(Q.Range) && prediction.HitChance >= HitQ() && target.Health < SpellDamage.Qmage(target))
                    {
                        Q.Cast(prediction.CastPosition);
                    }
                }
            }
        }