Beispiel #1
0
        public static void KillSteal(EventArgs args)
        {
            if (Menus.Misc["Q"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                var prediction = Spells.Q.GetPrediction(target);
                if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit() &&
                    target.TotalShieldHealth() <= Spells.Q.GetSpellDamage(target))
                {
                    Spells.Q.Cast(target);
                }
            }

            if (Menus.Misc["W"].Cast <CheckBox>().CurrentValue&& Spells.W.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.W.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.W.Range) &&
                    target.TotalShieldHealth() <= Spells.W.GetSpellDamage(target))
                {
                    Spells.W.Cast(target);
                }
            }

            if (Menus.Misc["E"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.E.Range) &&
                    target.TotalShieldHealth() <= Spells.E.GetSpellDamage(target))
                {
                    Spells.E.Cast(target);
                }
            }

            if (Menus.Misc["ignite"].Cast <CheckBox>().CurrentValue&&
                Spells.Ignite != null && Spells.Ignite.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.Ignite.Range, DamageType.True);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.Ignite.Range) && target.TotalShieldHealth() <=
                    Player.Instance.GetSummonerSpellDamage(target, DamageLibrary.SummonerSpells.Ignite))
                {
                    Spells.Ignite.Cast(target);
                }
            }
        }
Beispiel #2
0
        public static void Harass()
        {
            if (Menus.Combo["Qh"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                var prediction = Spells.Q.GetPrediction(target);
                if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit())
                {
                    Spells.Q.Cast(prediction.CastPosition);
                }
            }

            if (Menus.Combo["Eh"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady() &&
                (!Menus.Combo["Qh"].Cast <CheckBox>().CurrentValue || !Spells.Q.IsReady()))
            {
                var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
                if (target == null || More.Unkillable(target))
                {
                    return;
                }
                if (target.IsValidTarget(Spells.E.Range))
                {
                    Spells.E.Cast(target);
                }
            }
        }
Beispiel #3
0
        public static void Flee()
        {
            if (Spells.Q.IsReady() && (Player.Instance.HasBuff("RyzeQIconNoCharge") ||
                                       Player.Instance.HasBuff("RyzeQIconFullCharge")))
            {
                var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
                if (target == null)
                {
                    return;
                }
                var prediction = Spells.Q.GetPrediction(target);
                if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit())
                {
                    Spells.Q.Cast(prediction.CastPosition);
                }
                if (More.CollisionT && Player.Instance.HasBuff("RyzeQIconFullCharge"))
                {
                    Spells.Q.Cast(Player.Instance.Position.Extend(target, Spells.Q.Range).To3DWorld());
                }
            }

            if (Spells.W.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.W.Range, DamageType.Magical);
                if (target == null)
                {
                    return;
                }
                if (target.IsValidTarget(Spells.W.Range) && target.HasBuff("RyzeE"))
                {
                    Spells.W.Cast(target);
                }
            }

            if (Spells.E.IsReady())
            {
                var target = TargetSelector.GetTarget(Spells.E.Range, DamageType.Magical);
                if (target == null)
                {
                    return;
                }
                if (target.IsValidTarget(Spells.E.Range) && (!Spells.Q.IsReady() || More.CollisionT || target.HasBuff("RyzeE")))
                {
                    Spells.E.Cast(target);
                }
            }
        }
Beispiel #4
0
 public static void AutoHarass(EventArgs args)
 {
     if (Menus.Combo["auto"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() &&
         Player.Instance.ManaPercent > Menus.HarassMana.CurrentValue && More.CanCast())
     {
         var target = TargetSelector.GetTarget(Spells.Q.Range, DamageType.Magical);
         if (target == null || More.Unkillable(target))
         {
             return;
         }
         var prediction = Spells.Q.GetPrediction(target);
         if (target.IsValidTarget(Spells.Q.Range) && prediction.HitChance >= More.Hit())
         {
             Spells.Q.Cast(target);
         }
     }
 }
Beispiel #5
0
        public static void Collision()
        {
            if (Menus.Combo["Qc"].Cast <CheckBox>().CurrentValue&& Spells.Q.IsReady() &&
                More.HitQ != null && More.CountE > 1)
            {
                var prediction = Spells.Q.GetPrediction(More.HitQ);
                if (prediction.HitChance >= More.Hit())
                {
                    Spells.Q.Cast(prediction.CastPosition);
                }
            }

            if (Menus.Combo["Ec"].Cast <CheckBox>().CurrentValue&& Spells.E.IsReady())
            {
                if (More.DieE != null)
                {
                    var targetE = TargetSelector.GetTarget(300, DamageType.Magical, More.DieE.Position, true);
                    if (targetE != null)
                    {
                        Spells.E.Cast(More.DieE);
                    }
                }

                if (More.HasE != null)
                {
                    var targetE = TargetSelector.GetTarget(300, DamageType.Magical, More.HasE.Position, true);
                    if (targetE != null)
                    {
                        Spells.E.Cast(More.HasE);
                    }
                }

                if (More.HitE != null && More.HasE == null && More.DieE == null)
                {
                    var targetE = TargetSelector.GetTarget(300, DamageType.Magical, More.HitE.Position, true);
                    if (targetE != null)
                    {
                        Spells.E.Cast(More.HitE);
                    }
                }
            }
        }