/// <summary> /// Called whenever the Game Updates Itself /// </summary> /// <param name="args">The Args</param> private static void Game_OnTick(EventArgs args) { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { StateHandler.Combo(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { StateHandler.Harass(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { StateHandler.LaneClear(); } if ((Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) && Config.FarmMenu["useQ"].Cast <CheckBox>().CurrentValue) { StateHandler.LastHit(); } }
/// <summary> /// Called whenever the Game Updates Itself /// </summary> /// <param name="args">The Args</param> private static void Game_OnTick(EventArgs args) { if (Orbwalker.ForcedTarget != null) { if (!Player.Instance.IsInAutoAttackRange(Orbwalker.ForcedTarget) || !Orbwalker.ForcedTarget.IsValidTarget() || Orbwalker.ForcedTarget.IsInvulnerable) { Orbwalker.ForcedTarget = null; } } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { StateHandler.Combo(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { StateHandler.Harass(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { StateHandler.LaneClear(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { StateHandler.LastHit(); } }
/// <summary> /// Called whenever the Game Updates Itself /// </summary> /// <param name="args">The Args</param> private static void Game_OnTick(EventArgs args) { try { StateHandler.KillSteal(); if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { StateHandler.Combo(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { StateHandler.Harass(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { StateHandler.LaneClear(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { StateHandler.LastHit(); } } catch (Exception e) { Chat.Print("Nasus | Encountered a Exception in Game_OnTick" + e.Message); } }
private static void Orbwalker_OnAttack(AttackableUnit target, EventArgs args) { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { StateHandler.LastHit(target as Obj_AI_Base); } }