Beispiel #1
0
        private static void GameOnOnUpdate(EventArgs args)
        {
            if (Modes.MenuConfig.Orbwalker.ActiveMode != Orbwalking.OrbwalkingMode.LaneClear)
            {
                return;
            }

            var jungleMobs = MobManager.GetMobs(Q.Range, MobManager.MobTypes.All);

            if (jungleMobs != null)
            {
                if (Q.IsReady() && jungleMobs.IsValidTarget(Q.Range) && LocalMenu.Item("Jungle.UseQ").GetValue <bool>())
                {
                    Q.Cast();
                }

                if (W.IsReady() && LocalMenu.Item("Jungle.UseW").GetValue <StringList>().SelectedIndex != 0)
                {
                    if (Shen.Champion.SpiritUnit.SwordUnit.Position.Distance(ObjectManager.Player.Position) < 350f &&
                        jungleMobs.Position.Distance(SpiritUnit.SwordUnit.Position) < 450)
                    {
                        W.Cast();
                    }
                    else if (Q.IsReady() && ObjectManager.Player.Distance(jungleMobs) <= Q.Range)
                    {
                        Q.Cast();
                    }
                }

                if (E.IsReady() && LocalMenu.Item("Jungle.UseE").GetValue <StringList>().SelectedIndex != 0)
                {
                    switch (LocalMenu.Item("Jungle.UseE").GetValue <StringList>().SelectedIndex)
                    {
                    case 1:
                    {
                        E.Cast(jungleMobs.Position);
                        break;
                    }

                    case 2:
                    {
                        jungleMobs = MobManager.GetMobs(E.Range, MobManager.MobTypes.BigBoys);
                        if (jungleMobs != null)
                        {
                            E.Cast(jungleMobs.Position);
                        }
                        break;
                    }
                    }
                }
            }
        }