示例#1
0
        private static void OnTick(EventArgs args)
        {
            if (myhero.IsDead)
            {
                return;
            }

            Orbwalker.ActiveModes flags = Orbwalker.ActiveModesFlags;

            if (flags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Combo();
            }

            if ((flags.HasFlag(Orbwalker.ActiveModes.Harass) && myhero.ManaPercent > slider(harass, "HMIN")) ||
                (flags.HasFlag(Orbwalker.ActiveModes.LaneClear) && myhero.ManaPercent > slider(laneclear, "LMIN")) ||
                (flags.HasFlag(Orbwalker.ActiveModes.JungleClear) && myhero.ManaPercent > slider(jungleclear, "JMIN")))
            {
                AIO_Logic();
            }

            if (check(misc, "WFLEE") && DemSpells.W.IsReady() && flags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                DemSpells.W.Cast();
            }

            Misc();
        }
示例#2
0
        public override bool ShouldBeExecuted(Orbwalker.ActiveModes activeModes)
        {
            if (activeModes.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                return(true);
            }
            var deadCombo = Instance.GetGlobal <CheckBox>("ComboWhileDead");

            return(deadCombo != null && deadCombo.CurrentValue && Instance.IsDead);
        }
示例#3
0
 private List <Orbwalker.ActiveModes> GetModes(Orbwalker.ActiveModes modes)
 {
     if (modes == Orbwalker.ActiveModes.None)
     {
         return(new List <Orbwalker.ActiveModes>
         {
             Orbwalker.ActiveModes.None
         });
     }
     return(OrbwalkerModes.Where(mode => modes.HasFlag(mode)).ToList());
 }
示例#4
0
        private void PermaActive()
        {
            if (MenuManager.Modes.Misc.Evade && !EvadeHelper.Evading)
            {
                EvadeHelper.OnLoad();
            }

            if (!MenuManager.Modes.Misc.Evade && EvadeHelper.Evading)
            {
                EvadeHelper.UnLoad();
            }

            activeMode = Orbwalker.ActiveModesFlags;

            if (activeMode.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                OnCombo();
            }
            if (activeMode.HasFlag(Orbwalker.ActiveModes.LastHit))
            {
                OnLastHit();
            }
            if (activeMode.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                OnHarass();
            }
            if (activeMode.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                OnLaneClear();
            }
            if (activeMode.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                OnJungleClear();
            }

            /*
             *  if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee)) OnFlee();
             */
        }
示例#5
0
 public override bool ShouldBeExecuted(Orbwalker.ActiveModes activeModes)
 {
     return(activeModes.HasFlag(Orbwalker.ActiveModes.Harass) || HarassToggleKey.CurrentValue);
 }
示例#6
0
 public override bool ShouldBeExecuted(Orbwalker.ActiveModes activeModes)
 {
     return(activeModes.HasFlag(Orbwalker.ActiveModes.Harass));
 }
示例#7
0
文件: Brain.cs 项目: mrarticuno/EBHQ
        private void PermaActive()
        {
            if (MenuManager.Modes.Misc.Evade && !EvadeHelper.Evading)
                EvadeHelper.OnLoad();

            if (!MenuManager.Modes.Misc.Evade && EvadeHelper.Evading)
                EvadeHelper.UnLoad();

            activeMode = Orbwalker.ActiveModesFlags;

            if (activeMode.HasFlag(Orbwalker.ActiveModes.Combo)) OnCombo();
            if (activeMode.HasFlag(Orbwalker.ActiveModes.LastHit)) OnLastHit();
            if (activeMode.HasFlag(Orbwalker.ActiveModes.Harass)) OnHarass();
            if (activeMode.HasFlag(Orbwalker.ActiveModes.LaneClear)) OnLaneClear();
            if (activeMode.HasFlag(Orbwalker.ActiveModes.JungleClear)) OnJungleClear();
            /*        
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee)) OnFlee();
            */
        }