Exemplo n.º 1
0
 private void Jungle()
 {
     if (Program.LaneClear && Player.Mana > RMANA + QMANA)
     {
         var mobs = Cache.GetMinions(Player.ServerPosition, 650, MinionTeam.Neutral);
         if (mobs.Count > 0)
         {
             var mob = mobs[0];
             if (Q1.IsReady() && Config.Item("jungleQ", true).GetValue <bool>())
             {
                 Q1.Cast(mob.ServerPosition);
                 return;
             }
             else if (E.IsReady() && Config.Item("jungleE", true).GetValue <bool>())
             {
                 E.Cast(mob.ServerPosition);
                 return;
             }
             else if (W.IsReady() && Config.Item("jungleW", true).GetValue <bool>())
             {
                 W.Cast();
                 return;
             }
         }
     }
 }
Exemplo n.º 2
0
        public Position GetPosition(int x, int y)
        {
            if (MiddleSquare.Contains(x, y))
            {
                return(Position.Middle);
            }
            else if (Q1.Contains(x, y))
            {
                return(Position.Q1);
            }
            else if (Q2.Contains(x, y))
            {
                return(Position.Q2);
            }
            else if (Q3.Contains(x, y))
            {
                return(Position.Q3);
            }
            else if (Q4.Contains(x, y))
            {
                return(Position.Q4);
            }

            return(Position.None);
        }
Exemplo n.º 3
0
        public override void Execute()
        {
            if (Settings.Mana >= Player.Instance.ManaPercent)
            {
                return;
            }

            if (Settings.UseQ && Q.IsReady())
            {
                var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);
                if (target != null)
                {
                    Q.Cast(target);
                }
            }
            if (Settings.UseQ && Q.IsReady())
            {
                var target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);
                if (target != null && Q1.GetPrediction(target).HitChance >= HitChance.Medium)
                {
                    SpellManager.castQ1(target);
                }
            }
            if (Settings.UseE && Settings.UseQ && Q.IsReady() && E.IsReady())
            {
                var target = TargetSelector.GetTarget(Q.Range + E.Range, DamageType.Physical);
                if (target != null)
                {
                    SpellManager.dashToQ1(target);
                }
            }
        }
Exemplo n.º 4
0
        public override void Execute()
        {
            if (Settings.mana >= Player.Instance.ManaPercent)
            {
                return;
            }

            if (Settings.UseQ && Q.IsReady())
            {
                var minions = EntityManager.MinionsAndMonsters.EnemyMinions.Where(t => t.IsEnemy && !t.IsDead && t.IsValid && !t.IsInvulnerable && t.IsInRange(Player.Instance.Position, Q1.Range));
                foreach (var m in minions)
                {
                    if (Q1.GetPrediction(m).CollisionObjects.Where(t => t.IsEnemy && !t.IsDead && t.IsValid && !t.IsInvulnerable).Count() >= 3)
                    {
                        Q.Cast(m);
                        break;
                    }
                }
            }/*
              * if (Settings.UseW && W.IsReady())
              * {
              * var minions = EntityManager.MinionsAndMonsters.EnemyMinions.Where(t => t.IsEnemy && !t.IsDead && t.IsValid && !t.IsInvulnerable && t.IsInRange(Player.Instance.Position, W.Range));
              * if (minions.Count() > 3)
              * {
              *     W.Cast();
              * }
              * }*/
        }
Exemplo n.º 5
0
        private static void LaneClear()
        {
            if (Human() && Player.ManaPercent <= Config.Item("laneclear.mana").GetValue <Slider>().Value)
            {
                return;
            }
            var minions = MinionManager.GetMinions(Player.ServerPosition, W.Range).FirstOrDefault();

            if (minions == null)
            {
                return;
            }

            if (Human())
            {
                if (Q.IsReady() && Config.Item("laneclear.q").GetValue <bool>() && minions.Distance(Player.Position) <= Q.Range)
                {
                    Q.CastOnUnit(minions);
                }

                if (W.IsReady() && Config.Item("laneclear.w").GetValue <bool>())
                {
                    W.Cast(minions);
                }
            }
            else
            {
                if (Q.IsReady() && Config.Item("laneclear.q.spider").GetValue <bool>() && minions.Distance(Player.Position) <= Q1.Range)
                {
                    Q1.CastOnUnit(minions);
                }
            }
        }
Exemplo n.º 6
0
        public void Post(Q1 model)
        {
            var year       = model.Id;
            var Interest2  = model.Interest;
            var moneyStart = model.Outstanding;

            for (int i = 0; i < year; i++)
            {
                var sum = new Q1()
                {
                    Outstanding = moneyStart,
                    Interest    = Interest2,
                    Total       = (moneyStart * Interest2) / 100,
                    Payments    = moneyStart + ((moneyStart * Interest2) / 100),

                    // Payments = ((moneyStart * Interest2)/100),
                    Id = i + 1
                };
                data.Add(sum);
                moneyStart = sum.Payments;
            }

            /* var id = data.Max(it => it.Id) + 1;
             * model.Id = id;
             * data.Add(model);*/
        }
Exemplo n.º 7
0
        private void A(W1 <p1> w, TreeNode treeNode, h <p1> h)
        {
            p1 p = this.A(treeNode, false);

            if (p == null)
            {
                return;
            }
            if (h == null)
            {
                h = new h <p1>();
            }
            h.Add(p);
            foreach (p1 current in w)
            {
                if (!h.Contains(current))
                {
                    Q1 q = current as Q1;
                    if (q != null && q.A(p.b()))
                    {
                        TreeNode treeNode2 = new J2 <p1>(q);
                        treeNode2.ImageIndex         = this.A.ImageIndex + 8;
                        treeNode2.SelectedImageIndex = this.A.SelectedImageIndex + 8;
                        treeNode.Nodes.Add(treeNode2);
                        this.A(w, treeNode2, h);
                    }
                }
            }
        }
Exemplo n.º 8
0
        public override void Execute()
        {
            var minion =
                EntityManager.MinionsAndMonsters.GetLaneMinions()
                .OrderByDescending(m => m.Health)
                .FirstOrDefault(m => m.IsValidTarget(Q3.Range));

            if (minion == null)
            {
                return;
            }

            if (Q1.IsReady() && minion.IsValidTarget(Q3.Range) && Settings.UseQ)
            {
                Functions.CastQ(minion);
            }

            if (E.IsReady() && minion.IsValidTarget(E.Range) && Settings.UseE)
            {
                E.Cast(minion);
            }

            if (W.IsReady() && minion.IsValidTarget(W.Range) && Settings.UseW)
            {
                W.Cast();
            }
        }
Exemplo n.º 9
0
 public void L(Q1 q)
 {
     if (this.A != q)
     {
         if (this.A != null)
         {
             this.A.a(new Q1.a(this.l));
             this.A.a(new Q1.A(this.L));
             this.A.a(this);
         }
         this.A = q;
         this.l();
         if (this.A() != null)
         {
             this.L().A(this);
             this.f(this.A);
             this.k();
             h2 h = q1.A().A(this.A());
             if (h == null)
             {
                 throw new l1();
             }
             this.A = q1.A().A(h);
             if (this.A.A() != h)
             {
                 throw new l1();
             }
             this.L().A(new Q1.a(this.l));
             this.L().A(new Q1.A(this.L));
             this.M(!this.A().J());
         }
     }
 }
Exemplo n.º 10
0
        public bool A(e2 e, H2 h, Q1 q, string text)
        {
            Q1 q2 = e.L();

            q2.A(h);
            H2 h2 = h.A();
            E1 e2 = this.A.A(this.A, text);

            try
            {
                if (!this.A(e, h, q.b(), text))
                {
                    throw new InvalidOperationException();
                }
                int num = -1;
                if (!this.A(q, ref num, h2))
                {
                    throw new InvalidOperationException();
                }
                this.A.A(e2);
            }
            catch (Exception ex)
            {
                this.A.a(e2);
                e.C();
                n1.A(ex);
            }
            return(true);
        }
Exemplo n.º 11
0
        private void A(string text)
        {
            Q1 q = (Q1)this.A.E();

            q.b(text);
            this.A(q);
        }
Exemplo n.º 12
0
        //c
        public static void Combo()
        {
            var Target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);

            if (Target == null)
            {
                return;
            }
            var useQ  = ModesMenu1["ComboQ"].Cast <CheckBox>().CurrentValue;
            var useQ2 = ModesMenu1["ComboQ2"].Cast <CheckBox>().CurrentValue;
            var Qp    = Q1.GetPrediction(Target);

            if (!Target.IsValid())
            {
                return;
            }
            if (Q1.IsReady() && useQ && !Target.IsInvulnerable && Q1.Name.Equals("BlindMonkQOne", StringComparison.InvariantCultureIgnoreCase))
            {
                if (Qp.HitChance >= HitChance.High)
                {
                    Q1.Cast(Qp.CastPosition);
                }
            }

            if (Q2.IsReady() && useQ2 && !Target.IsInvulnerable && Q2.Name.Equals("blindmonkqtwo", StringComparison.InvariantCultureIgnoreCase))
            {
                Q2.Cast();
            }
        }
Exemplo n.º 13
0
        private void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
        {
            if (args.Slot == SpellSlot.R && !MainMenu.Item("smartR", true).GetValue <KeyBind>().Active)
            {
                var t = args.Target as Obj_AI_Hero;
                if (t != null && t.Health - OktwCommon.GetIncomingDamage(t) > R.GetDamage(t) * 2.5)
                {
                    if (E.IsReady() && Player.Mana > RMANA + EMANA)
                    {
                        E.CastOnUnit(t);
                        args.Process = false;
                        return;
                    }

                    if (W.IsReady() && Player.Mana > RMANA + WMANA)
                    {
                        W.Cast(t.Position);
                        args.Process = false;
                        return;
                    }

                    if (Q.IsReady() && t.IsValidTarget(Q.Range) && Player.Mana > RMANA + QMANA)
                    {
                        Q1.Cast(t);
                        args.Process = false;
                        return;
                    }
                }
                if (R.IsReady() && t.IsValidTarget())
                {
                    Rtime = Game.Time;
                }
            }
        }
Exemplo n.º 14
0
        protected override void C()
        {
            Q1 q = new Q1(this.A);

            base.d().E(q);
            base.d().E(base.A(), this.A);
        }
Exemplo n.º 15
0
        private void C(object obj, EventArgs eventArgs)
        {
            if (this.A.a(this.A))
            {
                return;
            }
            k k = this.A.L();

            if (!k.f())
            {
                return;
            }
            if (!k.E())
            {
                return;
            }
            if (!k.e())
            {
                return;
            }
            Q1     q    = (Q1)this.A.E();
            string text = obj.ToString().Split(new char[]
            {
                '.'
            })[0];

            if (q.g(null, this.A.E(), text))
            {
                using (new C())
                {
                    this.A.A(this.A).A(this.A, k.A(), q, "" + obj);
                }
            }
        }
Exemplo n.º 16
0
        public override void Execute()
        {
            var target = TargetSelector.GetTarget(Q3.Range, DamageType.Magical);

            if (target == null || target.IsZombie)
            {
                return;
            }

            if (Q1.IsReady() && target.IsValidTarget(Q3.Range) && Settings.UseQ && !E.IsReady())
            {
                Functions.CastQ(target);
            }

            if (E.IsReady() && target.IsValidTarget(E.Range) && Settings.UseE)
            {
                E.Cast(target);
            }

            if (W.IsReady() && target.IsValidTarget(W.Range) && Settings.UseW)
            {
                W.Cast();
            }

            if (R.IsReady() && Settings.UseR)
            {
                var targetR = TargetSelector.GetTarget(R.Range, DamageType.Magical);
                if (target == null || target.IsZombie)
                {
                    return;
                }

                R.Cast(targetR);
            }
        }
Exemplo n.º 17
0
        static void Misc()
        {
            if (misc.check("QKS") && Q1.IsReady())
            {
                var target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);

                if (target != null && Q1.GetDamage(target) > target.Health)
                {
                    Q1.CastIfHitchanceMinimum(target, hitchance);
                }
            }

            if (misc.check("AUTOPOT") && !myhero.HasBuffOfType(BuffType.Heal) && myhero.HealthPercent <= slider(misc, "POTMIN") && !myhero.InShop())
            {
                if (Items.CanUseItem(myhero, Potion.Id))
                {
                    Potion.Cast();
                }

                else if (Items.CanUseItem(myhero, Biscuit.Id))
                {
                    Biscuit.Cast();
                }

                else if (Items.CanUseItem(myhero, RPotion.Id))
                {
                    RPotion.Cast();
                }

                else if (Items.CanUseItem(myhero, CPotion.Id))
                {
                    CPotion.Cast();
                }
            }
        }
Exemplo n.º 18
0
        public override void Execute()
        {
            if (!Config.Modes.LC.UseQ)
            {
                return;
            }


            LastHit(Q1);

            if (EntityManager.MinionsAndMonsters.CombinedAttackable.Any(m => m.Distance(Player.Instance) < Q1.Range && m.Health <= 2 * Player.Instance.GetSpellDamage(m, SpellSlot.Q)))
            {
                return;
            }
            //Logger.Debug("Hi, I'm trying to lane clear");
            Obj_AI_Minion laneClear =
                EntityManager.MinionsAndMonsters.EnemyMinions.FirstOrDefault(
                    m => m.Health > 2.5 * Player.Instance.GetSpellDamage(m, SpellSlot.Q));

            if (laneClear == null || !laneClear.IsValid || laneClear.IsDead)
            {
                return;
            }
            {
                if (Q1.GetPrediction(laneClear).HitChancePercent > 25)
                {
                    Q1.Cast(laneClear);
                }
            }
        }
Exemplo n.º 19
0
        /// <summary>
        ///     The cast R.
        /// </summary>
        private static void CastR()
        {
            var target = Variables.TargetSelector.GetTarget(Q1.Range);

            if (R.IsReady() && ComboR.Value && target.IsValidTarget())
            {
                if (RangeForm())
                {
                    if (!Q.IsReady() && !W.IsReady() && (HammerQ_CD_R == 0) && (target.DistanceToPlayer() < Q1.Range))
                    {
                        R.Cast();
                    }
                }
                else
                {
                    if (!Q1.IsReady() && !W1.IsReady() && (CannonQ_CD_R == 0) &&
                        ((CannonW_CD_R == 0) || (CannonE_CD_R == 0)))
                    {
                        R.Cast();
                    }

                    if (!Q1.IsReady() && !W1.IsReady() && !E1.IsReady())
                    {
                        R.Cast();
                    }
                }
            }
        }
Exemplo n.º 20
0
        public override void D(MouseEventArgs mouseEventArgs)
        {
            base.D(mouseEventArgs);
            Point point  = this.A.l(this.A);
            Point point2 = this.A.l(this.B);

            if (!this.A && this.A != null)
            {
                if (this.A.p(point))
                {
                    if (this.A.p(point) && i.F(this.A, this.B))
                    {
                        if (this.A.L().d())
                        {
                            i i = new j(this.A, mouseEventArgs, this.A, this.A.L().c(), this.A.L().D());
                            this.A.L(i);
                        }
                        else
                        {
                            if (this.A.L().B())
                            {
                                v.A(null, "Für die ausgewählten Symbole ist eine Verschiebung nicht möglich.");
                            }
                        }
                        this.A = null;
                    }
                    return;
                }
                this.A = null;
            }
            this.A = (this.A ? null : this.A.L().A(point2));
            if (this.A == null && this.A.L() != null && this.A.L().p(point2))
            {
                this.A = this.A.L();
            }
            if (this.A.L() != this.A)
            {
                this.A.L(this.A);
            }
            this.A = ((this.A != null) ? this.A.A() : null);
            if (this.A == null)
            {
                this.A = this.A.L().A(point2);
            }
            if (this.A == null)
            {
                if (this.A.L().a() && (this.A.L().A() == null || !this.A.L().A().D()) && !this.A.L().A().E().Contains(point2))
                {
                    this.A.L().A();
                    return;
                }
            }
            else
            {
                if (!this.A.L().A(this.A) && (this.A is d.a || !this.A.L().B()) && (!this.A || this.A.L(this.A as d.a, true) != null))
                {
                    this.A.L().A(this.A);
                }
            }
        }
Exemplo n.º 21
0
        private static void LaneClear()
        {
            if (Human() && Player.ManaPercent <= getSliderItem(laneClearMenu, "laneclear.mana"))
            {
                return;
            }
            var minions = MinionManager.GetMinions(Player.ServerPosition, W.Range).FirstOrDefault();

            if (minions == null)
            {
                return;
            }

            if (Human())
            {
                if (Q.IsReady() && getCheckBoxItem(laneClearMenu, "laneclear.q") && minions.LSDistance(Player.Position) <= Q.Range)
                {
                    Q.CastOnUnit(minions);
                }

                if (W.IsReady() && getCheckBoxItem(laneClearMenu, "laneclear.w"))
                {
                    W.Cast(minions);
                }
            }
            else
            {
                if (Q.IsReady() && getCheckBoxItem(laneClearMenu, "laneclear.q.spider") && minions.LSDistance(Player.Position) <= Q1.Range)
                {
                    Q1.CastOnUnit(minions);
                }
            }
        }
Exemplo n.º 22
0
        public void FibonacciLikeTestTake2()
        {
            // flower petals >> 1, 1, 2, 3, 5, 8, 13, 21, 34, 55(10), 89, 134, 223, ...
            Q1 q1 = new Q1();

            Assert.AreEqual(55, q1.FibonacciLike(1, 1, 10));
        }
Exemplo n.º 23
0
 public override void KillSteal()
 {
     foreach (var target in EntityManager.Heroes.Enemies.Where(e => e != null && e.IsValidTarget()))
     {
         foreach (
             var spell in
             SpellList.Where(
                 s =>
                 s.WillKill(target) && s != R && s.IsReady() && target.IsKillable(s.Range) &&
                 KillStealMenu.CheckBoxValue(s.Slot)))
         {
             if (spell.Slot == SpellSlot.Q)
             {
                 if (Q.GetPrediction(target).HitChance >= HitChance.Medium ||
                     Q1.GetPrediction(target).HitChance >= HitChance.Medium)
                 {
                     Q.Cast(target);
                 }
             }
             else
             {
                 (spell as Spell.Targeted)?.Cast(target);
             }
         }
     }
 }
Exemplo n.º 24
0
        /// <summary>
        ///     The cast qe hammer.
        /// </summary>
        private static void CastQEHammer()
        {
            var Enemies = GameObjects.EnemyHeroes.Where(x => (x != null) && x.IsValidTarget());

            foreach (var Enemy in
                     Enemies.Where(x => x.IsValidTarget(E1.Range) && (Q1.GetDamage(x) + HammerEDmg(x) > x.Health)))
            {
                if (RangeForm())
                {
                    if (R.IsReady())
                    {
                        R.Cast();
                    }
                }
                else
                {
                    if (Q1.IsReady() && E1.IsReady())
                    {
                        Q1.Cast(Enemy);
                        if (E1.IsReady())
                        {
                            E1.Cast();
                        }
                    }
                }
            }
        }
Exemplo n.º 25
0
        public override void c(MouseEventArgs mouseEventArgs)
        {
            base.D(mouseEventArgs);
            h2 h = q1.A().A(this.A.A());

            if (mouseEventArgs.Button == MouseButtons.Left && J.A != this.A.A())
            {
                string text = "";
                if (h.e())
                {
                    text += "Dieses Diagramm ist geschützt\n";
                }
                else
                {
                    text += "Dieses Diagramm ist vom Autor geschützt worden\n";
                }
                text += "und kann daher nicht bearbeitet werden.";
                v.A(this.A, text);
                J.A = this.A.L();
                return;
            }
            if (mouseEventArgs.Button == MouseButtons.Right)
            {
                this.A.l();
                e2.L(this.A, this.A.L());
            }
        }
Exemplo n.º 26
0
        private bool a()
        {
            bool   result = this.ValidateChildren();
            int    num    = -1;
            string text   = o1.b(this.A.Text);

            for (int i = 0; i < this.A.Items.Count; i++)
            {
                if (Q1.A(text, this.A.Items[i].ToString()))
                {
                    num = i;
                    break;
                }
            }
            string text2 = this.A.Text;

            this.A.SelectedIndex = num;
            this.A.Text          = text2;
            this.A.Enabled       = (num == -1 && this.A.A(text));
            if (!this.A.Enabled)
            {
                this.A.Checked = false;
            }
            this.A.Enabled = (text.Length > 0);
            return(result);
        }
Exemplo n.º 27
0
        /// <summary>
        /// The on draw.
        /// </summary>
        /// <param name="args">
        /// The args.
        /// </param>
        private static void OnDraw(EventArgs args)
        {
            foreach (var Enemy in GameObjects.EnemyHeroes.Where(x => x.IsValidTarget(2000)))
            {
                if (DrawDmg.Value)
                {
                    Indicator.Unit = Enemy;
                    Indicator.DrawDmg((float)ComboDamage(Enemy), Color.DarkRed);
                }
            }

            if (RangeForm())
            {
                if (CannonQERange.Value && QE.IsReady() && E.IsReady())
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, QE.Range, System.Drawing.Color.Aqua, 2);
                }
                if (CannonQRange.Value && Q.IsReady())
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, Q.Range, System.Drawing.Color.Cyan, 2);
                }
            }
            else
            {
                if (HammerQRange.Value && Q1.IsReady())
                {
                    Render.Circle.DrawCircle(ObjectManager.Player.Position, Q1.Range, System.Drawing.Color.IndianRed, 2);
                }
            }
        }
Exemplo n.º 28
0
        private void LogicFarm()
        {
            if (LaneClear && Player.Mana > QMANA + RMANA)
            {
                var mobs = GameObjects.GetJungles(Q.Range);

                if (mobs.Count > 0)
                {
                    var mob = mobs.First();

                    if (Q.IsReady())
                    {
                        Q.Cast(mob);
                        return;
                    }

                    if (W.IsReady())
                    {
                        W.Cast(mob);
                        return;
                    }
                }

                if (FarmSpells)
                {
                    if (Q.IsReady() && farmQ.Enabled)
                    {
                        var minions = GameObjects.GetMinions(Q1.Range);

                        foreach (var minion in minions)
                        {
                            var poutput = Q1.GetPrediction(minion);
                            var col     = poutput.CollisionObjects;

                            if (col.Count > 2)
                            {
                                var minionQ = col.First();

                                if (minionQ.IsValidTarget(Q.Range))
                                {
                                    Q.Cast(minionQ);
                                    return;
                                }
                            }
                        }
                    }

                    if (W.IsReady() && farmW.Enabled)
                    {
                        var minions = GameObjects.GetMinions(W.Range).ToList();
                        var wFarm   = W.GetCircularFarmLocation(minions, 150);

                        if (wFarm.MinionsHit > 3)
                        {
                            W.Cast(wFarm.Position);
                        }
                    }
                }
            }
        }
Exemplo n.º 29
0
        private void Jungle()
        {
            if (Program.LaneClear && Player.Mana > RMANA + WMANA + WMANA)
            {
                var mobs = Cache.GetMinions(Player.ServerPosition, 700, MinionTeam.Neutral);
                if (mobs.Count > 0)
                {
                    var mob = mobs[0];
                    if (Range)
                    {
                        if (Q.IsReady() && Config.Item("jungleQ", true).GetValue <bool>())
                        {
                            Q.Cast(mob.ServerPosition);
                            return;
                        }
                        if (W.IsReady() && Config.Item("jungleE", true).GetValue <bool>())
                        {
                            if (SebbyLib.Orbwalking.InAutoAttackRange(mob))
                            {
                                W.Cast();
                            }
                            return;
                        }
                        if (Config.Item("jungleR", true).GetValue <bool>())
                        {
                            R.Cast();
                        }
                    }
                    else
                    {
                        if (Q1.IsReady() && Config.Item("jungleQm", true).GetValue <bool>() && mob.IsValidTarget(Q1.Range))
                        {
                            Q1.Cast(mob);
                            return;
                        }

                        if (W1.IsReady() && Config.Item("jungleWm", true).GetValue <bool>())
                        {
                            if (mob.IsValidTarget(300))
                            {
                                W.Cast();
                            }
                            return;
                        }
                        if (E1.IsReady() && Config.Item("jungleEm", true).GetValue <bool>() && mob.IsValidTarget(E1.Range))
                        {
                            if (mob.IsValidTarget(E1.Range))
                            {
                                E1.Cast(mob);
                            }
                            return;
                        }
                        if (Config.Item("jungleR", true).GetValue <bool>())
                        {
                            R.Cast();
                        }
                    }
                }
            }
        }
Exemplo n.º 30
0
        private void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args)
        {
            if (args.Slot == SpellSlot.R && !Config[Player.CharacterName]["RConfig"].GetValue <MenuKeyBind>("smartR").Active)
            {
                var t = args.Target as AIHeroClient;
                if (t != null && t.Health - OktwCommon.GetIncomingDamage(t) > R.GetDamage(t) * 2.5)
                {
                    if (E.IsReady() && Player.Mana > RMANA + EMANA)
                    {
                        E.CastOnUnit(t);
                        args.Process = false;
                        return;
                    }

                    if (W.IsReady() && Player.Mana > RMANA + WMANA)
                    {
                        W.Cast(t.Position);
                        args.Process = false;
                        return;
                    }

                    if (Q.IsReady() && t.IsValidTarget(Q.Range) && Player.Mana > RMANA + QMANA)
                    {
                        Q1.Cast(t);
                        args.Process = false;
                        return;
                    }
                }
                if (R.IsReady() && t.IsValidTarget())
                {
                    Rtime = Game.Time;
                }
            }
        }
Exemplo n.º 31
0
		protected override void C()
		{
			Q1 q = new Q1(this.A);
			base.d().E(q);
			base.d().E(base.A(), this.A);
		}
Exemplo n.º 32
0
		protected override void c()
		{
			Q1 q = new Q1(this.a);
			base.d().E(q);
		}