Exemple #1
0
        private static void WhileCastingR()
        {
            if (!RMenu.checkbox("R"))
            {
                return;
            }

            var rMode = RMenu.combobox("Rmode");

            var rTarget = RMenu.checkbox("Rnear") ? GetTargetNearMouse(RMenu.slider("Mradius")) : TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (rTarget != null)
            {
                if (rTarget.TotalShieldHealth() - R.GetDamage(rTarget) < 0)
                {
                    if (EloBuddy.SDK.Core.GameTickCount - RCharge.CastT <= 0)
                    {
                        return;
                    }
                }

                if (RCharge.Index != 0 && rTarget.Distance(RCharge.Position) > 1000)
                {
                    if (EloBuddy.SDK.Core.GameTickCount - RCharge.CastT <= Math.Min(2500, rTarget.Distance(RCharge.Position) - 1000))
                    {
                        return;
                    }
                }

                scrybeorbuse();
                switch (rMode)
                {
                case 0:
                    R.Cast(rTarget, R.hitchance(Menuini));
                    break;

                case 1:
                    var delay = RMenu.slider("delay" + (RCharge.Index + 1));
                    if (EloBuddy.SDK.Core.GameTickCount - RCharge.CastT > delay)
                    {
                        R.Cast(rTarget, R.hitchance(Menuini));
                    }

                    break;

                case 2:
                    if (RCharge.TapKeyPressed)
                    {
                        R.Cast(rTarget);
                    }

                    break;
                }
            }
        }