Пример #1
0
        private static void OnCombo()
        {
            var Target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (!Target.IsValidTarget(700) || Target == null)
            {
                return;
            }

            var useQ = AatroxMenu.MyCombo["combo.Q"].Cast <CheckBox>().CurrentValue;
            var useW = AatroxMenu.MyCombo["combo.W"].Cast <CheckBox>().CurrentValue;
            var useE = AatroxMenu.MyCombo["combo.E"].Cast <CheckBox>().CurrentValue;


            if (useE && E.IsReady())
            {
                E.Cast(Target.Position);
            }
            if (useQ && Q.IsReady())
            {
                if (!Target.HasBuff("AatroxQ"))
                {
                    Q.Cast(Target);
                }
            }
            if (W.IsReady() && useW)
            {
                if (W.IsReady() && Player.HealthPercent < AatroxMenu.MyCombo["combo.minw"].Cast <Slider>().CurrentValue)
                {
                    if (Player.Spellbook.GetSpell(SpellSlot.W).ToggleState == 2)
                    {
                        W.Cast();
                    }
                }
                if (W.IsReady() && Player.HealthPercent > AatroxMenu.MyCombo["combo.maxw"].Cast <Slider>().CurrentValue)
                {
                    if (Player.Spellbook.GetSpell(SpellSlot.W).ToggleState == 1)
                    {
                        W.Cast();
                    }
                }
            }
            var useR       = AatroxMenu.MyCombo["combo.R"].Cast <CheckBox>().CurrentValue;
            var ultEnemies = AatroxMenu.MyCombo["combo.REnemies"].Cast <Slider>().CurrentValue;

            if (useR && R.IsReady() && Player.ServerPosition.CountEnemiesInRange(500f) <= ultEnemies)
            {
                R.Cast();
            }
            if (Player.ServerPosition.CountEnemiesInRange(500f) >= AatroxMenu.checkenemies() && Player.HealthPercent <= AatroxMenu.checkhp() && MyActivator.youmus.IsReady() && AatroxMenu.MyActivator["youmus"].Cast <CheckBox>().CurrentValue&& MyActivator.youmus.IsOwned())
            {
                MyActivator.youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= AatroxMenu.checkhp() && AatroxMenu.tiamat() && MyActivator.Tiamat.IsReady() && MyActivator.Tiamat.IsOwned() && MyActivator.Tiamat.IsInRange(Target))
            {
                MyActivator.Tiamat.Cast();
                return;
            }
            if (Player.HealthPercent <= AatroxMenu.checkhp() && AatroxMenu.hydra() && MyActivator.Hydra.IsReady() && MyActivator.Hydra.IsOwned() && MyActivator.Hydra.IsInRange(Target))
            {
                MyActivator.Hydra.Cast();
                return;
            }

            if (Player.HealthPercent <= AatroxMenu.checkhp() && AatroxMenu.MyActivator["bilgewater"].Cast <CheckBox>().CurrentValue&& MyActivator.bilgewater.IsReady() && MyActivator.bilgewater.IsOwned())
            {
                MyActivator.bilgewater.Cast(Target);
                return;
            }

            if (!(Player.HealthPercent <= AatroxMenu.checkhp()) ||
                !AatroxMenu.MyActivator["botrk"].Cast <CheckBox>().CurrentValue || !MyActivator.botrk.IsReady() ||
                !MyActivator.botrk.IsOwned())
            {
                return;
            }
            MyActivator.botrk.Cast(Target);
        }