Example #1
0
        public static void Combo()
        {
            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && MenuConfig.AlwaysR &&
                Target != null)
            {
                ForceR();
            }

            if (Spells.W.IsReady() && InWRange(Target) && Target != null)
            {
                Spells.W.Cast();
            }

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && Spells.W.IsReady() && Target != null &&
                Spells.E.IsReady() && Target.IsValidTarget() && !Target.IsZombie && (Dmg.IsKillableR(Target) || MenuConfig.AlwaysR))
            {
                if (!InWRange(Target))
                {
                    Spells.E.Cast(Target.Position);
                    ForceR();
                    Utility.DelayAction.Add(200, ForceW);
                    Utility.DelayAction.Add(30, () => ForceCastQ(Target));
                }
            }

            else if (Spells.W.IsReady() && Spells.E.IsReady() && MenuConfig.ComboE)
            {
                if (Target.IsValidTarget() && Target != null && !Target.IsZombie && !InWRange(Target))
                {
                    Spells.E.Cast(Target.Position);
                    if (InWRange(Target))
                    {
                        Utility.DelayAction.Add(100, ForceW);
                    }
                    Utility.DelayAction.Add(30, () => ForceCastQ(Target));
                }
            }
            else if (Spells.W.IsReady())
            {
                if (Target.IsValidTarget() && Target != null && !Target.IsZombie && !InWRange(Target))
                {
                    if (InWRange(Target))
                    {
                        Utility.DelayAction.Add(200, ForceW);
                    }
                    Utility.DelayAction.Add(30, () => ForceCastQ(Target));
                }
            }
            else if (Spells.E.IsReady() && MenuConfig.ComboE)
            {
                if (Target != null && Target.IsValidTarget() && !Target.IsZombie && !InWRange(Target))
                {
                    Spells.E.Cast(Target.Position);
                }
            }
        }
Example #2
0
        public static void Combo()
        {
            if (Target == null || Target.IsDead || !Target.LSIsValidTarget() || Target.IsInvulnerable)
            {
                return;
            }

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && MenuConfig.AlwaysR)
            {
                ForceR();
            }

            if (Spells.W.IsReady() && InWRange(Target))
            {
                Spells.W.Cast();
            }

            if (Spells.R.IsReady() && Spells.R.Instance.Name == IsFirstR && Spells.W.IsReady() &&
                Spells.E.IsReady() && (Dmg.IsKillableR(Target) || MenuConfig.AlwaysR))
            {
                if (InWRange(Target))
                {
                    return;
                }

                Spells.E.Cast(Target.Position);
                ForceR();
                LeagueSharp.Common.Utility.DelayAction.Add(170, ForceW);
                LeagueSharp.Common.Utility.DelayAction.Add(30, () => ForceCastQ(Target));
            }

            else if (Spells.W.IsReady() && Spells.E.IsReady())
            {
                Spells.E.Cast(Target.Position);
                if (!InWRange(Target))
                {
                    return;
                }

                LeagueSharp.Common.Utility.DelayAction.Add(100, ForceW);
                LeagueSharp.Common.Utility.DelayAction.Add(30, () => ForceCastQ(Target));
            }
            else if (Spells.E.IsReady())
            {
                if (!InWRange(Target))
                {
                    Spells.E.Cast(Target.Position);
                }
            }
        }