Beispiel #1
0
        public static void HarassLogic()
        {
            var PacketCast = SkyLv_Evelynn.Menu.Item("Evelynn.UsePacketCastHarass").GetValue <bool>();

            var useQ      = SkyLv_Evelynn.Menu.Item("Evelynn.UseQHarass").GetValue <bool>();
            var MiniManaQ = SkyLv_Evelynn.Menu.Item("Evelynn.QMiniManaHarass").GetValue <Slider>().Value;

            var useE      = SkyLv_Evelynn.Menu.Item("Evelynn.UseEHarass").GetValue <bool>();
            var MiniManaE = SkyLv_Evelynn.Menu.Item("Evelynn.EMiniManaHarass").GetValue <Slider>().Value;


            if (useQ && Q.IsReady() && Player.Mana >= Q.ManaCost && Player.ManaPercent > MiniManaQ)
            {
                var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
                if (CustomLib.enemyChampionInPlayerRange(Q.Range) > 0)
                {
                    Q.Cast(PacketCast);
                }
            }

            if (useE && E.IsReady() && Player.ManaPercent > MiniManaE)
            {
                var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
                E.CastOnUnit(target, PacketCast);
            }
        }
Beispiel #2
0
        public static void ComboLogic()
        {
            var PacketCast       = SkyLv_Evelynn.Menu.Item("Evelynn.UsePacketCastCombo").GetValue <bool>();
            var useQ             = SkyLv_Evelynn.Menu.Item("Evelynn.UseQCombo").GetValue <bool>();
            var useW             = SkyLv_Evelynn.Menu.Item("Evelynn.UseWCombo").GetValue <bool>();
            var useE             = SkyLv_Evelynn.Menu.Item("Evelynn.UseWCombo").GetValue <bool>();
            var useR             = SkyLv_Evelynn.Menu.Item("Evelynn.UseRCombo").GetValue <bool>();
            var MinimumEnemyHitR = SkyLv_Evelynn.Menu.Item("Evelynn.MinimumEnemyHitR").GetValue <Slider>().Value;

            if (SkyLv_Evelynn.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                if (useR && R.IsReady())
                {
                    var target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical);
                    if (target.IsValidTarget())
                    {
                        R.CastIfWillHit(target, MinimumEnemyHitR, PacketCast);
                    }
                }

                if (useW && W.IsReady())
                {
                    var target = TargetSelector.GetTarget(W.Range, TargetSelector.DamageType.Magical);
                    if (target.IsValidTarget())
                    {
                        if (Player.Mana > R.ManaCost + E.ManaCost + Q.ManaCost && (CustomLib.enemyChampionInPlayerRange(W.Range) > 0 || Player.HasBuffOfType(BuffType.Slow)))
                        {
                            W.Cast(PacketCast);
                        }
                    }
                }

                if (useE && E.IsReady())
                {
                    var target = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Magical);
                    if (target.IsValidTarget())
                    {
                        E.CastOnUnit(target, PacketCast);
                    }
                }

                if (useQ && Q.IsReady())
                {
                    var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);
                    if (target.IsValidTarget())
                    {
                        Q.Cast(PacketCast);
                    }
                }
            }
        }