Example #1
0
        private static void Combomelee()
        {
            // if (Player.IsWindingUp) return;
            var target = TargetSelector.GetTarget(Qm.Range, TargetSelector.DamageType.Physical);

            if (target == null)
            {
                return;
            }

            if (Player.Distance(target) < Orbwalking.GetRealAutoAttackRange(target))
            {
                if (Wm.IsReady())
                {
                    Wm.Cast();
                }
            }

            if (Player.Distance(target) < 300)
            {
                if (Qm.IsReady() && !Em.IsReady() && GetBool("useqcm", typeof(bool)))
                {
                    Qm.Cast(target);
                }

                if (Em.IsReady() && GetBool("useecm", typeof(bool)))
                {
                    var aarange = Orbwalking.GetRealAutoAttackRange(target);
                    if (((!Q.IsReady() || (SpellTimer["Qm"] > 1.3f) && !E.IsReady()) ||
                         Player.Distance(target) < aarange + 150))
                    {
                        Em.Cast(target);
                    }

                    if (target.Health < EMeleeDamage(target) + 200)
                    {
                        Em.Cast(target);
                    }
                }
            }
            else
            {
                if (Ready("Q") || Ready("W") && Em.IsReady() && GetBool("useecm", typeof(bool)))
                {
                    Em.Cast(target);
                }
                if (Qm.IsReady() && GetBool("useqcm", typeof(bool)))
                {
                    Qm.Cast(target);
                }
            }
        }
Example #2
0
        private static void Combomelee()
        {
            // if (Player.IsWindingUp) return;
            var target = TargetSelector.GetTarget(Qm.Range, DamageType.Physical);

            if (target == null)
            {
                return;
            }
            var expires = (Player.Spellbook.GetSpell(SpellSlot.R).CooldownExpires);
            var CD      =
                (int)
                (expires -
                 (Game.Time - 1));

            if (Player.LSDistance(target) < Orbwalking.GetRealAutoAttackRange(target))
            {
                if (Wm.IsReady())
                {
                    Wm.Cast();
                }
            }

            foreach (var x in HeroManager.Enemies.Where(z => z.LSIsValidTarget(Em.Range)))
            {
                if (x.Health < EMeleeDamage(target) + 100)
                {
                    Em.Cast(target);
                }
            }

            if (Player.LSDistance(target) <= Em.Range - 80)
            {
                if (Qm.IsReady() && !Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcm"))
                {
                    Qm.Cast(target);
                }

                if (SpellTimer["Em"] > 1.6 && Qm.IsReady())
                {
                    Qm.Cast(target);
                }

                if (Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useecm"))
                {
                    var aarange = Orbwalking.GetRealAutoAttackRange(target);
                    if (SpellTimer["Qm"] < 2.2 &&
                        (Player.LSDistance(target) < aarange + 100 || (SpellTimer["Q"] < 1.2 && CD < 1.5)))
                    {
                        Em.Cast(target);
                    }

                    if (target.Health < EMeleeDamage(target) + 90)
                    {
                        Em.Cast(target);
                    }
                }
            }
            else
            {
                if ((SpellTimer["Q"] < 1.5 || SpellTimer["W"] < 0.8) && CD < 1 && Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useecm"))
                {
                    Em.Cast(target);
                }
                if (Qm.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcm"))
                {
                    Qm.Cast(target);
                }
            }
        }