Example #1
0
        private static void Combo()
        {
            var target = TargetSelector.GetTarget(Riven.E.Range + 200, DamageType.Physical);

            if (target != null)
            {
                if (R.IsReady())
                {
                    if (CheckUlt() == false)
                    {
                        if (target.HealthPercent >= RivenMenu.Slider(RivenMenu.Combo, "DontR1"))

                        {
                            Player.CastSpell(SpellSlot.E, target.Position);
                            ChooseR(target);
                        }
                    }
                }

                if (RivenMenu.CheckBox(RivenMenu.Combo, "UseR2Combo"))
                {
                    if (CheckUlt() == true)
                    {
                        ChooseR2(target);
                    }
                }

                if (target.Distance(Player.Instance) <= E.Range && E.IsReady() && RivenMenu.CheckBox(RivenMenu.Combo, "UseECombo"))
                {
                    Player.CastSpell(SpellSlot.E, target.Position);
                    return;
                }
                if (target.Distance(Player.Instance) <= Hydra.Range && Hydra.IsReady() && RivenMenu.CheckBox(RivenMenu.Combo, "UseHT"))
                {
                    ItemLogic.Hydra.Cast();
                    return;
                }
                {
                    if (HasYoumu())
                    {
                        if (RivenMenu.CheckBox(RivenMenu.Misc, "Youmu"))
                        {
                            Youmu.Cast();
                            Chat.Print("Youmu Cast");
                        }
                    }


                    if (target.Distance(Player.Instance) <= W.Range && W.IsReady() && RivenMenu.CheckBox(RivenMenu.Combo, "UseWCombo"))
                    {
                        if (ItemLogic.Hydra != null && ItemLogic.Hydra.IsReady())
                        {
                            ItemLogic.Hydra.Cast();
                            return;
                        }
                        Player.CastSpell(SpellSlot.W);
                    }
                }
            }
        }