Beispiel #1
0
        public static void AutoWManager()
        {
            var target       = TargetSelector.GetTarget(W2.Range + 50, TargetSelector.DamageType.Magical);
            var PacketCast   = SkyLv_AurelionSol.Menu.Item("AurelionSol.UsePacketCastCombo").GetValue <bool>();
            var AutoWManager = SkyLv_AurelionSol.Menu.Item("AurelionSol.AutoManageW").GetValue <bool>();

            if (AutoWManager)
            {
                if (CustomLib.enemyChampionInRange(600 + 300) == 0 && CustomLib.isWInLongRangeMode())
                {
                    W2.Cast(PacketCast);
                }
            }
        }
Beispiel #2
0
        public static void ComboLogic()
        {
            var PacketCast            = SkyLv_AurelionSol.Menu.Item("AurelionSol.UsePacketCastCombo").GetValue <bool>();
            var useQ                  = SkyLv_AurelionSol.Menu.Item("AurelionSol.UseQCombo").GetValue <bool>();
            var useW                  = SkyLv_AurelionSol.Menu.Item("AurelionSol.UseWCombo").GetValue <bool>();
            var useR                  = SkyLv_AurelionSol.Menu.Item("AurelionSol.UseRCombo").GetValue <bool>();
            var MinimumEnemyHitComboR = SkyLv_AurelionSol.Menu.Item("AurelionSol.MinimumEnemyHitComboR").GetValue <Slider>().Value;

            if (SkyLv_AurelionSol.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                var target = TargetSelector.GetTarget(W2.Range + 50, TargetSelector.DamageType.Magical);

                if (target.IsValidTarget())
                {
                    if (useR && R.IsReady() && Player.Mana >= R.ManaCost)
                    {
                        R.CastIfWillHit(target, MinimumEnemyHitComboR, PacketCast);
                    }

                    if (useQ && Q.IsReady() && Player.Mana >= Q.ManaCost)
                    {
                        Q.CastIfHitchanceEquals(target, HitChance.VeryHigh, PacketCast);
                    }

                    if (useW)
                    {
                        if (target.Distance(Player) <= W1.Range + 50 && CustomLib.isWInLongRangeMode())
                        {
                            W2.Cast(PacketCast);
                        }

                        if (target.Distance(Player) > W1.Range + 50 && target.Distance(Player) < W2.Range + 50 && !CustomLib.isWInLongRangeMode())
                        {
                            W1.Cast(PacketCast);
                        }

                        else if (CustomLib.enemyChampionInRange(900) == 0 && CustomLib.isWInLongRangeMode())
                        {
                            W2.Cast(PacketCast);
                        }
                    }
                }
            }
        }