Example #1
0
        private static void AntiGapcloser_OnEnemyGapcloser(ActiveGapcloser gapcloser)
        {
            var target = gapcloser.Sender;

            if (!target.IsValidTarget(E.Range))
            {
                return;
            }

            if (E.IsReady() && SubMenu["Misc"]["UseEInterrupt"].Cast <CheckBox>().CurrentValue&& SubMenu["Misc"][target.ChampionName].Cast <CheckBox>().CurrentValue)
            {
                E.CastOnUnit(target);
            }
            if (SubMenu["Misc"]["AntiGapQ"].Cast <CheckBox>().CurrentValue&& Q.IsReady())
            {
                if (myHero.Distance4(gapcloser.End) < 425)
                {
                    Tumble.Cast(myHero.Position.Extend2(gapcloser.End, -300));
                }
            }
        }
Example #2
0
        private static void Combo()
        {
            if (Heal != null && SubMenu["Misc"]["heal"].Cast <CheckBox>().CurrentValue&& Heal.IsReady() && HealthPercent <= SubMenu["Misc"]["hp"].Cast <Slider>().CurrentValue &&
                myHero.CountEnemiesInRange2(600) > 0 && Heal.IsReady())
            {
                Heal.Cast();
                Console.WriteLine("heal ");
            }

            var target = TargetSelector2.GetTarget(E.Range, TargetSelector2.DamageType.Physical);

            orbwalker.ForceTarget(target);

            if (!target.IsValidTarget(E.Range))
            {
                return;
            }
            if (SubMenu["Combo"]["E"].Cast <CheckBox>().CurrentValue&& target != null && target.IsValidTarget(E.Range) && E.IsReady() &&
                SubMenu["Misc"][target.ChampionName + "E"].Cast <CheckBox>().CurrentValue)
            {
                Condemn();
                Console.WriteLine(" E");
            }
            if (SubMenu["Combo"]["R"].Cast <CheckBox>().CurrentValue&& myHero.CountEnemiesInRange2(600f) >= (SubMenu["Combo"]["R2"].Cast <Slider>().CurrentValue) && R.IsReady())
            {
                R.Cast();
                Console.WriteLine("R");
            }
            var mousePos = myHero.Position.Extend2(Game.CursorPos, Q.Range);

            if ((SubMenu["Combo"]["Qult"].Cast <CheckBox>().CurrentValue&& Q.IsReady() && myHero.HasBuff("vayneinquisition") && myHero.CountEnemiesInRange2(1500) > 0 && myHero.CountEnemiesInRange2(670) != 1))
            {
                myHero.Spellbook.CastSpell(SpellSlot.Q, mousePos, true);
                Console.WriteLine(" RQ");
            }
            if (SubMenu["Combo"]["useItems"].Cast <CheckBox>().CurrentValue)
            {
                if (Item.HasItem((int)ItemId.Blade_of_the_Ruined_King, myHero) && Item.CanUseItem((int)ItemId.Blade_of_the_Ruined_King) &&
                    HealthPercent <= SubMenu["Combo"]["myhp"].Cast <Slider>().CurrentValue)
                {
                    Item.UseItem((int)ItemId.Blade_of_the_Ruined_King, target);
                }
                if (Item.HasItem((int)ItemId.Bilgewater_Cutlass, myHero) && Item.CanUseItem((int)ItemId.Bilgewater_Cutlass) &&
                    target.IsValidTarget(myHero.GetAutoAttackRange()))
                {
                    Item.UseItem((int)ItemId.Bilgewater_Cutlass, target);
                }
                if (Item.HasItem((int)ItemId.Youmuus_Ghostblade, myHero) && Item.CanUseItem((int)ItemId.Youmuus_Ghostblade) &&
                    myHero.Distance4(target.Position) <= myHero.GetAutoAttackRange())
                {
                    Item.UseItem((int)ItemId.Youmuus_Ghostblade);
                }
            }
        }