private static void OnUpdate(EventArgs args) { Orbwalker.DisableAttacking = false; if (Config.Modes.Humanizer.Humanize) { if (!Humanizer.CheckDelay(Humanizer.General)) { return; } Humanizer.ChangeDelay( Humanizer.General, new Random().Next(Config.Modes.Humanizer.MinDelay, Config.Modes.Humanizer.MaxDelay)); } Modes.ForEach( mode => { try { if (!mode.ShouldBeExecuted()) { return; } mode.Execute(); } catch (Exception e) { Logger.Log(LogLevel.Error, "Error in mode '{0}'\n{1}", mode.GetType().Name, e); } }); }
static Modes() { ModesMenu = Menu.AddSubMenu("Modes"); Combo.Initialize(); Menu.AddSeparator(); Harass.Initialize(); Menu.AddSeparator(); LaneClear.Initialize(); Menu.AddSeparator(); LastHit.Initialize(); MiscMenu = Menu.AddSubMenu("Misc"); Misc.Initialize(); Menu.AddSeparator(); AutoStack.Initialize(); Menu.AddSeparator(); Humanizer.Initialize(); //Menu.AddSeparator(); //TearStack.Initialize(); DrawMenu = Menu.AddSubMenu("Draw"); Draw.Initialize(); }