Example #1
0
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(Qe.Range, DamageType.Physical);

            if (target == null)
            {
                return;
            }
            var prede = Q.GetPrediction(target);
            var pred  = Qe.GetPrediction(target);

            if (pred.CollisionObjects.Count() >= 1)
            {
                return;
            }

            qpred.From  = Qe.GetPrediction(target).CastPosition;
            qpred1.From = Q.GetPrediction(target).CastPosition;

            if (Q.IsReady() && E.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcr") &&
                Player.Mana >
                Player.Spellbook.GetSpell(SpellSlot.E).SData.Mana + Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana)
            {
                Qe.Cast(qpred.From);
            }

            if ((Q.IsReady() && !E.IsReady()) || (Q.IsReady() && E.IsReady() && Player.Mana <
                                                  Player.Spellbook.GetSpell(SpellSlot.E).SData.Mana + Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana))
            {
                if (Player.LSDistance(target) < Q.Range && getCheckBoxItem(MenuConfig.combo, "useqcr"))
                {
                    Q.Cast(qpred1.From);
                }
            }
        }
Example #2
0
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(Qe.Range, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }
            var prede = Q.GetPrediction(target);
            var pred  = Qe.GetPrediction(target);

            if (pred.CollisionObjects.Count >= 1)
            {
                return;
            }

            qpred.From  = Qe.GetPrediction(target).CastPosition;
            qpred1.From = Q.GetPrediction(target).CastPosition;

            if (Q.IsReady() && E.IsReady() && GetBool("useqcr", typeof(bool)) &&
                Player.Mana >
                Player.Spellbook.GetSpell(SpellSlot.E).ManaCost + Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost)
            {
                Qe.Cast(qpred.From);
            }

            if ((Q.IsReady() && !E.IsReady()) || (Q.IsReady() && E.IsReady() && Player.Mana <
                                                  Player.Spellbook.GetSpell(SpellSlot.E).ManaCost + Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost))
            {
                if (Player.Distance(target) < Q.Range && GetBool("useqcr", typeof(bool)))
                {
                    Q.Cast(qpred1.From);
                }
            }
        }
Example #3
0
        private static void Harass()
        {
            var target = TargetSelector.GetTarget(Qe.Range, DamageType.Physical);

            if (target == null)
            {
                return;
            }
            qpred.From  = Qe.GetPrediction(target).CastPosition;
            qpred1.From = Q.GetPrediction(target).CastPosition;
            if (!Ismelee())
            {
                if (Q.IsReady() && E.IsReady() && Player.Mana >
                    Player.Spellbook.GetSpell(SpellSlot.E).SData.Mana + Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana &&
                    getCheckBoxItem(MenuConfig.harass, "useqhr"))
                {
                    Qe.Cast(qpred.From);
                }

                if (Q.IsReady() && target.LSIsValidTarget(Q.Range) && (!E.IsReady() || Player.Mana <
                                                                       Player.Spellbook.GetSpell(SpellSlot.E).SData.Mana +
                                                                       Player.Spellbook.GetSpell(SpellSlot.Q).SData.Mana) &&
                    getCheckBoxItem(MenuConfig.harass, "useqhr"))
                {
                    Q.Cast(qpred1.From);
                }
            }
            else
            {
                if (Q.IsReady() && getCheckBoxItem(MenuConfig.harass, "useqhm"))
                {
                    Q.Cast(target);
                }
            }
        }
Example #4
0
        private static void Harass()
        {
            var target = TargetSelector.GetTarget(Qe.Range, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }
            qpred.From  = Qe.GetPrediction(target).CastPosition;
            qpred1.From = Q.GetPrediction(target).CastPosition;
            if (!Ismelee())
            {
                if (Q.IsReady() && E.IsReady() && Player.Mana >
                    Player.Spellbook.GetSpell(SpellSlot.E).ManaCost + Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost &&
                    GetBool("useqhr", typeof(bool)))
                {
                    Qe.Cast(qpred.From);
                }

                if (Q.IsReady() && target.IsValidTarget(Q.Range) && (!E.IsReady() || Player.Mana <
                                                                     Player.Spellbook.GetSpell(SpellSlot.E).ManaCost +
                                                                     Player.Spellbook.GetSpell(SpellSlot.Q).ManaCost) &&
                    GetBool("useqhr", typeof(bool)))
                {
                    Q.Cast(qpred1.From);
                }
            }
            else
            {
                if (Q.IsReady() && GetBool("useqhm", typeof(bool)))
                {
                    Q.Cast(target);
                }
                if (W.IsReady() && GetBool("usewhm", typeof(bool)) && target.Distance(Player) < W.Range)
                {
                    W.Cast();
                }
            }
        }