예제 #1
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 (KL.Spellbook["R"].IsReady() && KL.Player.Mana - KL.Spellbook["W"].ManaCost >
                KL.Spellbook["R"].ManaCost || !KL.Spellbook["R"].IsReady())
            {
                if (!hero.HasBuffOfType(BuffType.Slow) || Config.Item("wwww").GetValue <bool>())
                {
                    KL.Spellbook["W"].Cast();
                }
            }

            if (!KL.Spellbook["W"].IsReady() && Config.Item("iiii").GetValue <bool>())
            {
                KL.HandleItems();
            }
        }
예제 #2
0
        internal static void Orbwalking_AfterAttack(AttackableUnit target, EventArgs args)
        {
            var hero = Orbwalker.LastTarget as AIHeroClient;

            if (hero == null || !hero.IsValid <AIHeroClient>() || hero.Type != GameObjectType.AIHeroClient ||
                !Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                return;
            }

            if (KL.Spellbook["R"].IsReady() && KL.Player.Mana - KL.Spellbook["W"].ManaCost >
                KL.Spellbook["R"].ManaCost || !KL.Spellbook["R"].IsReady())
            {
                if (!hero.HasBuffOfType(BuffType.Slow) || getCheckBoxItem(cmenu, "wwww"))
                {
                    KL.Spellbook["W"].Cast();
                }
            }

            if (!KL.Spellbook["W"].IsReady() && getCheckBoxItem(cmenu, "iii"))
            {
                KL.HandleItems();
            }
        }