Ejemplo n.º 1
0
        private static void AfterAttack(AttackableUnit target, EventArgs args)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) ||
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                if (getCheckBoxItem(comboMenu, "useE") && e.IsReady() && target is AIHeroClient &&
                    target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                if (getCheckBoxItem(clearMenu, "useEj") && e.IsReady() && target is Obj_AI_Minion &&
                    target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) ||
                Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                if ((getCheckBoxItem(miscMenu, "titanicC") || getCheckBoxItem(miscMenu, "ravenousC") ||
                     getCheckBoxItem(miscMenu, "tiamatC")) && !e.IsReady() && target is AIHeroClient &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                if ((getCheckBoxItem(miscMenu, "titanicF") || getCheckBoxItem(miscMenu, "ravenousF") ||
                     getCheckBoxItem(miscMenu, "tiamatF")) && !e.IsReady() && target is Obj_AI_Minion &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }
        }
Ejemplo n.º 2
0
        private static void AfterAttack(AttackableUnit unit, AttackableUnit target)
        {
            if ((ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) && unit.IsMe)
            {
                if (ConfigMenu.config.Item("useE").GetValue <bool>() && e.IsReady() && target is Obj_AI_Hero && target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if (ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && unit.IsMe)
            {
                if (ConfigMenu.config.Item("useEj").GetValue <bool>() && e.IsReady() && target is Obj_AI_Minion && target.IsValidTarget(e.Range))
                {
                    e.Cast();
                }
            }

            if ((ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo ||
                 ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed) && unit.IsMe)
            {
                if ((ConfigMenu.config.Item("titanicC").GetValue <bool>() || ConfigMenu.config.Item("ravenousC").GetValue <bool>() ||
                     ConfigMenu.config.Item("tiamatC").GetValue <bool>()) && !e.IsReady() && target is Obj_AI_Hero &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }

            if (ConfigMenu.orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && unit.IsMe)
            {
                if ((ConfigMenu.config.Item("titanicF").GetValue <bool>() || ConfigMenu.config.Item("ravenousF").GetValue <bool>() ||
                     ConfigMenu.config.Item("tiamatF").GetValue <bool>()) && !e.IsReady() && target is Obj_AI_Minion &&
                    target.IsValidTarget(e.Range) && CommonUtilities.CheckItem())
                {
                    CommonUtilities.UseItem();
                }
            }
        }