void OnUpdate(EventArgs args) { if (Yasuo.IsDead || Yasuo.LSIsRecalling()) { return; } CastUlt(); if (GetBool("Misc.AutoStackQ", YasuoMenu.MiscM) && !TornadoReady && !CurrentTarget.IsValidEnemy(Spells[Q].Range) && !Yasuo.LSIsDashing() && !InDash) { var closest = ObjectManager.Get <Obj_AI_Minion>() .Where(x => x.IsValidMinion(Spells[Q].Range) && (MinionManager.IsMinion(x) || x.BaseSkinName.Equals("Sru_Crab"))) .MinOrDefault(x => x.LSDistance(Yasuo)); if (closest != null) { var pred = Spells[Q].GetPrediction(closest); if (pred.Hitchance >= HitChance.Low) { Spells[Q].Cast(closest.ServerPosition); } } } if (GetBool("Misc.Walljump", YasuoMenu.MiscM) && Game.MapId == GameMapId.SummonersRift) { WallJump.OnUpdate(); } if (GetKeyBind("Misc.DashMode", YasuoMenu.MiscM)) { MoveToMouse(); return; } Fleeing = Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee); if (GetBool("Killsteal.Enabled", YasuoMenu.KillstealM) && !Fleeing) { Killsteal(); } if (GetKeyBind("Harass.KB", YasuoMenu.HarassM) && !Fleeing) { Harass(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { Orbwalker.OrbwalkTo(Game.CursorPos); Orbwalker.DisableAttacking = false; Combo(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { Orbwalker.OrbwalkTo(Game.CursorPos); Orbwalker.DisableAttacking = false; Mixed(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { Orbwalker.OrbwalkTo(Game.CursorPos); Orbwalker.DisableAttacking = false; LHSkills(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear)) { Orbwalker.OrbwalkTo(Game.CursorPos); Orbwalker.DisableAttacking = false; Waveclear(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee)) { Flee(); } }