Пример #1
0
        internal static void Orbwalker_OnAction(object sender, OrbwalkerActionArgs args)
        {
            var hero = sender as AIHeroClient;

            if (hero == null || !hero.IsValid() || hero.Type != GameObjectType.AIHeroClient ||
                Orbwalker.ActiveMode != OrbwalkerMode.Combo)
            {
                return;
            }
            if (args.Type == OrbwalkerType.AfterAttack)
            {
                if (Lib.Spellbook["R"].IsReady() && Lib.Player.Mana - Lib.Spellbook["W"].Mana >
                    Lib.Spellbook["R"].Mana || !Lib.Spellbook["R"].IsReady())
                {
                    if (!hero.HasBuffOfType(BuffType.Slow) || Config["cmenu"].GetValue <MenuBool>("wwww").Enabled)
                    {
                        Lib.Spellbook["W"].Cast();
                    }
                }

                if (!Lib.Spellbook["W"].IsReady() && Config["rmenu"].GetValue <MenuBool>("iiii").Enabled)
                {
                    Lib.HandleItems();
                }
            }
        }
Пример #2
0
        internal static void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            var hero = unit as AIHeroClient;

            if (hero == null || !hero.IsValid <AIHeroClient>() || hero.Type != GameObjectType.AIHeroClient ||
                Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.Combo)
            {
                return;
            }

            if (Lib.Spellbook["R"].IsReady() && Lib.Player.Mana - Lib.Spellbook["W"].ManaCost >
                Lib.Spellbook["R"].ManaCost || !Lib.Spellbook["R"].IsReady())
            {
                if (!hero.HasBuffOfType(BuffType.Slow) || Config.Item("wwww").GetValue <bool>())
                {
                    Lib.Spellbook["W"].Cast();
                }
            }

            if (!Lib.Spellbook["W"].IsReady() && Config.Item("iiii").GetValue <bool>())
            {
                Lib.HandleItems();
            }
        }