Exemple #1
0
        public static void HarassLogic()
        {
            var target = KappaSelector.SelectTarget(Q.Range + 100);

            if (target == null)
            {
                return;
            }

            var Qready = Harass["Q"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && target.IsValidTarget(Q.Range) && Q.Mana(Harass) &&
                         (Q.GetPrediction(target).HitChance >= HitChance.High || target.IsCC()) && Common.Qmana;
            var Wready = Harass["W"].Cast <CheckBox>().CurrentValue&& W.IsReady() && target.IsValidTarget(W.Range) &&
                         (W.GetPrediction(target).HitChance >= HitChance.High || target.IsCC()) && Common.Wmana && W.Mana(Harass);
            var Eready = Harass["E"].Cast <CheckBox>().CurrentValue&& E.IsReady() && target.IsValidTarget(E.Range) && Common.Emana && E.Mana(Harass);

            if (Qready)
            {
                Qlogic(target);
            }
            if (Wready)
            {
                Wlogic(target);
            }
            if (Eready)
            {
                Elogic(target);
            }
        }
Exemple #2
0
        public static void ComboLogic()
        {
            var target = KappaSelector.SelectTarget(Q.Range + 100);

            if (target == null)
            {
                return;
            }

            var Qready = Combo["Q"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && target.IsValidTarget(Q.Range) && Q.Mana(Combo) &&
                         (Q.GetPrediction(target).HitChance >= HitChance.High || target.IsCC()) && Common.Qmana;
            var Wready = Combo["W"].Cast <CheckBox>().CurrentValue&& W.IsReady() && target.IsValidTarget(W.Range) &&
                         (W.GetPrediction(target).HitChance >= HitChance.High || target.IsCC()) && Common.Wmana && W.Mana(Combo);
            var Eready    = Combo["E"].Cast <CheckBox>().CurrentValue&& E.IsReady() && target.IsValidTarget(E.Range) && Common.Emana && E.Mana(Combo);
            var RFinisher = Combo["RFinisher"].Cast <CheckBox>().CurrentValue&& R.IsReady() && target.IsValidTarget(R.Range) && Common.Rmana &&
                            R.Mana(Combo);
            var RAoe = Combo["RAoe"].Cast <CheckBox>().CurrentValue&& R.IsReady() && target.IsValidTarget(R.Range) && Common.Rmana && R.Mana(Combo);

            if (Qready)
            {
                Qlogic(target);
            }
            if (Wready)
            {
                Wlogic(target);
            }
            if (Eready)
            {
                Elogic(target);
            }
            if (RFinisher)
            {
                Rlogic(target);
            }
            if (RAoe)
            {
                Rlogic(target);
            }
        }