Пример #1
0
        public static void burstCombo()
        {
            SH.Orbwalk(Target);

            if (!Target.IsValidTarget())
            {
                return;
            }
            var BonusRange = Orbwalking.GetRealAutoAttackRange(Player) + (Target.BoundingRadius / 2) - 50;

            if (SH.SummonerDictionary[SH.summonerSpell.Flash].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState && !Target.IsValidTarget(SH._spells[SpellSlot.E].Range) &&
                Target.IsValidTarget(SH._spells[SpellSlot.E].Range + 400) && MenuHandler.getMenuBool("BFl") || startJump1)
            {
                startJump1 = true;
                if (SH._spells[SpellSlot.E].IsReady())
                {
                    SH.CastE(Target.Position);
                }
                if (Environment.TickCount - CH.LastE >= 200)
                {
                    SH.CastR();
                }
                if (Environment.TickCount - CH.LastFR >= 250 && Environment.TickCount - CH.LastFR < 1000)
                {
                    SH.castFlash(Target.Position);
                    startJump1 = false;
                }
                return;
            }
            if (Target.IsValidTarget(SH._spells[SpellSlot.E].Range) && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState || startJump2)
            {
                startJump2 = true;
                if (SH._spells[SpellSlot.E].IsReady())
                {
                    SH.CastE(Target.Position);
                }
                if (Environment.TickCount - CH.LastE >= 250)
                {
                    SH.CastR();
                    startJump2 = false;
                }
                return;
            }

            switch (CH.FullComboState)
            {
            case 1:
            {
                if (!Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
                {
                    return;
                }
                SH.CastW();
                SH.castItems(Target);
            }
            break;

            case 2:
            {
                CH.FullComboState = 3;
            }
            break;

            case 3:
            {
                SH.CastQ(Target);
            }
            break;
            }


            if (SH._spells[SpellSlot.R].IsReady() && SH._spells[SpellSlot.R].GetDamage(Target) + (SH._spells[SpellSlot.Q].IsReady() && Target.IsValidTarget(SH.QRange) ? SH._spells[SpellSlot.Q].GetDamage(Target) : 0) > Target.Health || startedR2Combo)
            {
                startedR2Combo = true;
                if (CH.RState)
                {
                    SH.CastR2(Target);
                    if (!SH._spells[SpellSlot.Q].IsReady() || !Target.IsValidTarget(SH.QRange))
                    {
                        startedR2Combo = false;
                    }
                }
                if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.lastR2 >= 100)
                {
                    SH.CastQ(Target);
                    startedR2Combo = false;
                }
                return;
            }

            SH.animCancel(Target);

            if (SH._spells[SpellSlot.E].IsReady() && CH.CanE)
            {
                if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) && Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                {
                    SH.CastE(Target.Position);
                }
                else if (SH._spells[SpellSlot.Q].IsReady() && !Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) &&
                         Target.IsValidTarget(SH._spells[SpellSlot.E].Range + SH._spells[SpellSlot.Q].Range - 50))
                {
                    SH.CastE(Target.Position);
                }
            }


            if (SH._spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 && Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
            {
                SH.CastW();
            }

            SH.castItems(Target);

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250)
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(Target);
                    return;
                }
                if (!Target.IsValidTarget(BonusRange + 50) && Target.IsValidTarget(SH.QRange))
                {
                    SH.CastQ(Target);
                }
            }
        }
Пример #2
0
        public static void burstCombo()
        {
            SH.Orbwalk(Target);

            if (!Target.IsValidTarget())
            {
                return;
            }
            var BonusRange = Orbwalking.GetRealAutoAttackRange(Player) + (Target.BoundingRadius / 2) - 50;

            burstFinished = !(SH._spells[SpellSlot.Q].IsReady() && SH._spells[SpellSlot.W].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady());

            if (!burstFinished || CH.FullComboState != 0)
            {
                if (SH.SummonerDictionary[SH.summonerSpell.Flash].IsReady() && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState && !Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) &&
                    Target.IsValidTarget(SH._spells[SpellSlot.E].Range + 400 + BonusRange) && MenuHandler.getMenuBool("BFL"))
                {
                    SH.CastE(Target.Position);
                    Utility.DelayAction.Add(200, SH.CastR);
                    Utility.DelayAction.Add(250, () => SH.castFlash(Target.Position));
                }
                if (Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) && SH._spells[SpellSlot.E].IsReady() && SH._spells[SpellSlot.R].IsReady() && !CH.RState)
                {
                    SH.CastE(Target.Position);
                    Utility.DelayAction.Add(250, SH.CastR);
                }
                switch (CH.FullComboState)
                {
                case 1:
                {
                    if (!Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
                    {
                        return;
                    }
                    SH.CastW();
                    SH.castItems(Target);
                }
                break;

                case 2:
                {
                    CH.FullComboState = 3;
                }
                break;

                case 3:
                {
                    SH.CastQ(Target);
                }
                break;
                }
                return;
            }

            if (SH._spells[SpellSlot.R].GetDamage(Target) > Target.Health && CH.RState && SH._spells[SpellSlot.R].IsReady())
            {
                SH.CastR2(Target);
            }

            SH.animCancel(Target);

            if (SH._spells[SpellSlot.E].IsReady() && CH.CanE)
            {
                if (!Target.IsValidTarget(SH._spells[SpellSlot.E].Range - BonusRange + 50) && Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange))
                {
                    SH.CastE(Target.Position);
                }
                else if (SH._spells[SpellSlot.Q].IsReady() && !Target.IsValidTarget(SH._spells[SpellSlot.E].Range + BonusRange) &&
                         Target.IsValidTarget(SH._spells[SpellSlot.E].Range + SH._spells[SpellSlot.Q].Range - 50))
                {
                    SH.CastE(Target.Position);
                }
            }


            if (SH._spells[SpellSlot.W].IsReady() && CH.CanW && Environment.TickCount - CH.LastE >= 250 && Target.IsValidTarget(SH._spells[SpellSlot.W].Range))
            {
                SH.CastW();
            }

            SH.castItems(Target);

            if (SH._spells[SpellSlot.Q].IsReady() && Environment.TickCount - CH.LastE >= 250)
            {
                if (Target.IsValidTarget(SH.QRange) && CH.CanQ)
                {
                    SH.CastQ(Target);
                    return;
                }
                if (!Target.IsValidTarget(BonusRange + 50) && Target.IsValidTarget(SH.QRange))
                {
                    SH.CastQ(Target);
                }
            }
        }