Пример #1
0
        private static void Orbwalker_OnPostAttack(AttackableUnit target, EventArgs args)
        {
            if (Player.HasBuff("GravesBasicAttackAmmo2") || !Spells["e"].IsReady())
            {
                return;
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && comboMenu["comboe"].Cast <CheckBox>().CurrentValue)
            {
                if (target.Type == GameObjectType.AIHeroClient)
                {
                    //Weird fix for BUG: Spells["e"].Cast(Game.CursorPos); not casting sometimes.
                    if (Player.CastSpell(SpellSlot.E, Game.CursorPos))
                    {
                        Orbwalker.ResetAutoAttack();
                    }
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear) && jungleclearMenu["junglecleare"].Cast <CheckBox>().CurrentValue)
            {
                Obj_AI_Minion jungleMob = (Obj_AI_Minion)target;

                if (jungleMob != null && jungleMob.IsMatureMonster())
                {
                    //Weird fix for BUG: Spells["e"].Cast(Game.CursorPos); not casting sometimes.
                    if (Player.CastSpell(SpellSlot.E, Game.CursorPos))
                    {
                        Orbwalker.ResetAutoAttack();
                    }
                }
            }
        }
Пример #2
0
        private static void JungleClear()
        {
            if (!jungleclearMenu["jungleclearq"].Cast <CheckBox>().CurrentValue || !Spells["q"].IsReady())
            {
                return;
            }

            Obj_AI_Minion jungleMob = EntityManager.MinionsAndMonsters.GetJungleMonsters(Player.Instance.Position, Spells["q"].Range).OrderByDescending(x => x.MaxHealth).FirstOrDefault();

            if (jungleMob != null && jungleMob.IsMatureMonster() && jungleMob.IsValidTarget(Spells["q"].Range) && !Player.Instance.CheckWallCollison(jungleMob.Position))
            {
                CastWallQ(jungleMob);
            }
        }