示例#1
0
        public static void Burst()
        {
            Orbwalker.MoveTo(Game.CursorPos);
            var target = TargetSelector.SelectedTarget;

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

            if (Spells.Flash.IsReady())
            {
                if (!(target.Health < Dmg.Totaldame(target)) && !MenuConfig.AlwaysF)
                {
                    return;
                }

                if (!(Player.LSDistance(target.Position) <= 700) || !(Player.LSDistance(target.Position) >= 600))
                {
                    return;
                }

                if (!Spells.R.IsReady() || !Spells.E.IsReady() || !Spells.W.IsReady() || Spells.R.Instance.Name != IsFirstR)
                {
                    return;                                                                                                          // So many returns Kappa, wanna see how the script handles returns.
                }
                Spells.E.Cast(target.Position);
                Usables.CastYoumoo();
                ForceR();
                LeagueSharp.Common.Utility.DelayAction.Add(180, FlashW);
                Usables.CastHydra();
            }
            else
            {
                if (!(Player.LSDistance(target) <= Spells.E.Range + Player.AttackRange))
                {
                    return;
                }

                if (Spells.E.IsReady() && Spells.R.IsReady())
                {
                    Spells.E.Cast(Target.ServerPosition);
                    ForceR();
                }
                else if (Spells.E.IsReady())
                {
                    Spells.E.Cast(Target);
                }
            }
        }