private void Offensive() { if (Botrk.IsReady() && getCheckBoxItem("Botrk")) { var t = TargetSelector.GetTarget(Botrk.Range, DamageType.Physical); if (t.IsValidTarget()) { if (getCheckBoxItem("BotrkKS") && Player.CalcDamage(t, DamageType.Physical, t.MaxHealth * 0.1) > t.Health - OktwCommon.GetIncomingDamage(t)) { Botrk.Cast(t); } if (getCheckBoxItem("BotrkLS") && Player.Health < Player.MaxHealth * 0.5 - OktwCommon.GetIncomingDamage(Player)) { Botrk.Cast(t); } if (getCheckBoxItem("BotrkCombo") && Program.Combo) { Botrk.Cast(t); } } } if (Hextech.IsReady() && getCheckBoxItem("Hextech")) { var t = TargetSelector.GetTarget(Hextech.Range, DamageType.Magical); if (t.IsValidTarget()) { if (getCheckBoxItem("HextechKS") && Player.CalcDamage(t, DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.4) > t.Health - OktwCommon.GetIncomingDamage(t)) { Hextech.Cast(t); } if (getCheckBoxItem("HextechCombo") && Program.Combo) { Hextech.Cast(t); } } } if (Program.Combo && FrostQueen.IsReady() && getCheckBoxItem("FrostQueen") && Player.CountEnemiesInRange(800) > 0) { FrostQueen.Cast(); } if (Cutlass.IsReady() && getCheckBoxItem("Cutlass")) { var t = TargetSelector.GetTarget(Cutlass.Range, DamageType.Magical); if (t.IsValidTarget()) { if (getCheckBoxItem("CutlassKS") && Player.CalcDamage(t, DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t)) { Cutlass.Cast(t); } if (getCheckBoxItem("CutlassCombo") && Program.Combo) { Cutlass.Cast(t); } } } if (Youmuus.IsReady() && getCheckBoxItem("Youmuus")) { var t = Orbwalker.LastTarget; if (t.IsValidTarget() && t is AIHeroClient) { if (getCheckBoxItem("YoumuusKS") && t.Health < Player.MaxHealth) { Youmuus.Cast(); } if (getCheckBoxItem("YoumuusCombo") && Program.Combo) { Youmuus.Cast(); } } } if (getCheckBoxItem("Hydra")) { if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0) { Hydra.Cast(); } else if (Hydra2.IsReady() && Player.CountEnemiesInRange(Hydra2.Range) > 0) { Hydra2.Cast(); } } }
private void Offensive() { if (Botrk.IsReady() && Config.Item("Botrk").GetValue <bool>()) { var t = TargetSelector.GetTarget(Botrk.Range, TargetSelector.DamageType.Physical); if (t.IsValidTarget()) { if (Config.Item("BotrkKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Physical, t.MaxHealth * 0.1) > t.Health) { Botrk.Cast(t); } if (Config.Item("BotrkLS").GetValue <bool>() && Player.Health < Player.MaxHealth * 0.5) { Botrk.Cast(t); } if (Config.Item("BotrkCombo").GetValue <bool>() && Program.Combo) { Botrk.Cast(t); } } } if (Hextech.IsReady() && Config.Item("Hextech").GetValue <bool>()) { var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("HextechKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.4) > t.Health) { Hextech.Cast(t); } if (Config.Item("HextechCombo").GetValue <bool>() && Program.Combo) { Hextech.Cast(t); } } } if (Cutlass.IsReady() && Config.Item("Cutlass").GetValue <bool>()) { var t = TargetSelector.GetTarget(Cutlass.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("CutlassKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 100) > t.Health) { Cutlass.Cast(t); } if (Config.Item("CutlassCombo").GetValue <bool>() && Program.Combo) { Cutlass.Cast(t); } } } if (Youmuus.IsReady() && Config.Item("Youmuus").GetValue <bool>()) { var t = Orbwalker.GetTarget(); if (t.IsValidTarget() && t is Obj_AI_Hero) { if (Config.Item("YoumuusKS").GetValue <bool>() && t.Health < Player.MaxHealth * 0.6) { Youmuus.Cast(); } if (Config.Item("YoumuusCombo").GetValue <bool>() && Program.Combo) { Youmuus.Cast(); } } } if (Config.Item("Hydra").GetValue <bool>()) { if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0) { Hydra.Cast(); } else if (Hydra2.IsReady() && Player.CountEnemiesInRange(Hydra2.Range) > 0) { Hydra2.Cast(); } } }
private void Offensive() { if (Botrk.IsReady() && Config.Item("Botrk").GetValue <bool>()) { var t = TargetSelector.GetTarget(Botrk.Range, TargetSelector.DamageType.Physical); if (t.IsValidTarget()) { if (Config.Item("BotrkKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Physical, t.MaxHealth * 0.1) > t.Health - OktwCommon.GetIncomingDamage(t)) { Botrk.Cast(t); } if (Config.Item("BotrkLS").GetValue <bool>() && Player.Health < Player.MaxHealth * 0.5) { Botrk.Cast(t); } if (Config.Item("BotrkCombo").GetValue <bool>() && Program.Combo) { Botrk.Cast(t); } } } if (Hextech.IsReady() && Config.Item("Hextech").GetValue <bool>()) { var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("HextechKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.4) > t.Health - OktwCommon.GetIncomingDamage(t)) { Hextech.Cast(t); } if (Config.Item("HextechCombo").GetValue <bool>() && Program.Combo) { Hextech.Cast(t); } } } if (Program.Combo && FrostQueen.IsReady() && Config.Item("FrostQueen").GetValue <bool>()) { var t = TargetSelector.GetTarget(FrostQueen.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { var predInput2 = new Core.PredictionInput { Aoe = true, Collision = false, Speed = 1200, Delay = 0.25f, Range = FrostQueen.Range, From = Player.ServerPosition, Radius = 200, Unit = t, Type = Core.SkillshotType.SkillshotCircle }; var poutput2 = Core.Prediction.GetPrediction(predInput2); if (poutput2.Hitchance >= Core.HitChance.High) { FrostQueen.Cast(poutput2.CastPosition); } } } if (Cutlass.IsReady() && Config.Item("Cutlass").GetValue <bool>()) { var t = TargetSelector.GetTarget(Cutlass.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("CutlassKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t)) { Cutlass.Cast(t); } if (Config.Item("CutlassCombo").GetValue <bool>() && Program.Combo) { Cutlass.Cast(t); } } } if (Youmuus.IsReady() && Config.Item("Youmuus").GetValue <bool>()) { var t = Orbwalker.GetTarget(); if (t.IsValidTarget() && t is Obj_AI_Hero) { if (Config.Item("YoumuusKS").GetValue <bool>() && t.Health < Player.MaxHealth * 0.6) { Youmuus.Cast(); } if (Config.Item("YoumuusCombo").GetValue <bool>() && Program.Combo) { Youmuus.Cast(); } } } if (Config.Item("Hydra").GetValue <bool>()) { if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0) { Hydra.Cast(); } else if (Hydra2.IsReady() && Player.CountEnemiesInRange(Hydra2.Range) > 0) { Hydra2.Cast(); } } }
private static void Items() { if (ObjectManager.GetLocalPlayer().IsDead || ObjectManager.GetLocalPlayer().IsRecalling() || ObjectManager.GetLocalPlayer().IsInFountainRange() || !ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.Enabled"].Enabled) { return; } #region Youmuu if (ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.YoumuusEnabled"].Enabled && Youmuus.IsMine && Youmuus.Ready) { if (ObjectManager.GetLocalPlayer().ChampionName == "Twitch") { if (ObjectManager.GetLocalPlayer().Buffs.Any(x => x.Name.ToLower() == "twitchfullautomatic")) { if (MyLogic.Orbwalker.GetOrbwalkingTarget() != null) { Youmuus.Cast(); return; } } } var target = GetTarget(800); if (target != null && target.IsValidAutoRange() && MyLogic.Orbwalker.Mode == OrbwalkingMode.Combo) { Youmuus.Cast(); return; } } #endregion #region Cutlass if (ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.CutlassEnabled"].Enabled && Cutlass.IsMine && Cutlass.Ready) { var target = GetTarget(Cutlass.Range); if (target != null && target.IsValidTarget(Cutlass.Range)) { if (Cutlass.GetDamage(target) > target.Health) { Cutlass.CastOnUnit(target); return; } if (MyLogic.Orbwalker.Mode == OrbwalkingMode.Combo) { if (target.IsValidAutoRange()) { Cutlass.CastOnUnit(target); return; } } } } #endregion #region Botrk if (ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.BOTRKEnabled"].Enabled && Botrk.IsMine && Botrk.Ready) { var target = GetTarget(Botrk.Range); if (target != null && target.IsValidTarget(Botrk.Range)) { if (Botrk.GetDamage(target) > target.Health) { Botrk.CastOnUnit(target); return; } if (MyLogic.Orbwalker.Mode == OrbwalkingMode.Combo) { if (target.IsValidAutoRange()) { Botrk.CastOnUnit(target); return; } } } } #endregion #region Hextech if (ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.GunbladeEnabled"].Enabled && Hextech.IsMine && Hextech.Ready) { var target = GetTarget(Hextech.Range); if (target != null && target.IsValidTarget(Hextech.Range)) { if (Hextech.GetDamage(target) > target.Health) { Hextech.CastOnUnit(target); return; } if (MyLogic.Orbwalker.Mode == OrbwalkingMode.Combo) { if (target.IsValidAutoRange()) { if (target.HealthPercent() <= 80) { Hextech.CastOnUnit(target); return; } } } } } #endregion #region Randuin if (ItemsMenu["SharpShooter.UtilityMenu.ItemsMenu.RanduinsOmenEnabled"].Enabled && Randuin.IsMine && Randuin.Ready) { if (MyLogic.Orbwalker.Mode == OrbwalkingMode.Combo) { if (ObjectManager.GetLocalPlayer().CountEnemyHeroesInRange(Randuin.Range) >= 3) { Randuin.Cast(); } } } #endregion }
private void Offensive() { if (Botrk.IsReady() && Config.Item("Botrk").GetValue <bool>()) { var t = TargetSelector.GetTarget(Botrk.Range, TargetSelector.DamageType.Physical); if (t.IsValidTarget()) { if (Config.Item("BotrkKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Physical, t.MaxHealth * 0.1) > t.Health - OktwCommon.GetIncomingDamage(t)) { Botrk.Cast(t); } if (Config.Item("BotrkLS").GetValue <bool>() && Player.Health < Player.MaxHealth * 0.5 - OktwCommon.GetIncomingDamage(Player)) { Botrk.Cast(t); } if (Config.Item("BotrkCombo").GetValue <bool>() && Program.Combo) { Botrk.Cast(t); } } } if (GLP800.IsReady() && Config.Item("GLP800").GetValue <bool>()) { var t = TargetSelector.GetTarget(GLP800.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("GLP800KS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 200 + Player.FlatMagicDamageMod * 0.35) > t.Health - OktwCommon.GetIncomingDamage(t)) { GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } if (Config.Item("GLP800Combo").GetValue <bool>() && Program.Combo) { Program.debug("PRO"); GLP800.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Protobelt.IsReady() && Config.Item("Protobelt").GetValue <bool>()) { var t = TargetSelector.GetTarget(Protobelt.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("ProtobeltKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.35) > t.Health - OktwCommon.GetIncomingDamage(t)) { Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } if (Config.Item("ProtobeltCombo").GetValue <bool>() && Program.Combo) { Program.debug("PRO"); Protobelt.Cast(Prediction.GetPrediction(t, 0.5f).CastPosition); } } } if (Hextech.IsReady() && Config.Item("Hextech").GetValue <bool>()) { var t = TargetSelector.GetTarget(Hextech.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("HextechKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 150 + Player.FlatMagicDamageMod * 0.4) > t.Health - OktwCommon.GetIncomingDamage(t)) { Hextech.Cast(t); } if (Config.Item("HextechCombo").GetValue <bool>() && Program.Combo) { Hextech.Cast(t); } } } if (Program.Combo && FrostQueen.IsReady() && Config.Item("FrostQueen").GetValue <bool>() && Player.CountEnemiesInRange(800) > 0) { FrostQueen.Cast(); } if (Cutlass.IsReady() && Config.Item("Cutlass").GetValue <bool>()) { var t = TargetSelector.GetTarget(Cutlass.Range, TargetSelector.DamageType.Magical); if (t.IsValidTarget()) { if (Config.Item("CutlassKS").GetValue <bool>() && Player.CalcDamage(t, Damage.DamageType.Magical, 100) > t.Health - OktwCommon.GetIncomingDamage(t)) { Cutlass.Cast(t); } if (Config.Item("CutlassCombo").GetValue <bool>() && Program.Combo) { Cutlass.Cast(t); } } } if (Youmuus.IsReady() && Config.Item("Youmuus").GetValue <bool>() && Program.Combo) { var t = Orbwalker.GetTarget(); if (t.IsValidTarget() && t is Obj_AI_Hero) { if (Config.Item("YoumuusKS").GetValue <bool>() && t.Health < Player.MaxHealth) { Youmuus.Cast(); } if (Config.Item("YoumuusCombo").GetValue <bool>()) { Youmuus.Cast(); } } } if (Config.Item("Hydra").GetValue <bool>()) { if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0) { Hydra.Cast(); } else if (Hydra2.IsReady() && Player.CountEnemiesInRange(Hydra2.Range) > 0) { Hydra2.Cast(); } } }
protected override void InitializeMenu() { Menu.AddGroupLabel("OKTR AIO - Activator for " + Player.Instance.ChampionName, "activator.grouplabel.utilitymenu"); Menu.AddCheckBox("activator.heal", "Use Heal"); Menu.AddCheckBox("activator.barrier", "Use Barrier"); Menu.AddCheckBox("activator.ignite", "Use Ignite"); Menu.Add("activator.advanced", new CheckBox("Show Advanced Menu", false)).OnValueChange += Value.AdvancedModeChanged; Menu.AddSeparator(); Menu.AddGroupLabel("Heal Manager:", "activator.label.utilitymenu.heal", true); Menu.AddCheckBox("activator.heal.lifesave", "Use Heal for Allies", false, true); Menu.AddSlider("activator.heal.hp", "Use Heal if HP are under {0}", 15, 0, 100, true); Menu.AddSeparator(); Menu.AddGroupLabel("Barrier Manager:", "activator.label.utilitymenu.barrier", true); Menu.AddSlider("activator.barrier.hp", "Use Heal if HP are under {0}", 15, 0, 100, true); Menu.AddSeparator(); Menu.AddGroupLabel("Ignite Manager:", "activator.label.utilitymenu.ignite", true); Menu.AddCheckBox("activator.ignite.progressive", "Use Ignite for Progressive Damage", false, true); Menu.AddCheckBox("activator.ignite.burst", "Use Ignite for Burst Damage", false, true); Menu.AddCheckBox("activator.ignite.killsteal", "Use Ignite for Killsteal", true, true); Menu.AddSeparator(); if (Botrk.IsOwned()) { Menu.AddCheckBox("activator.botrk", "Use BOTRK"); Menu.AddSeparator(); Menu.AddGroupLabel("Blade of The Ruined King Manager:", "activator.label.utilitymenu.botrk", true); Menu.AddCheckBox("activator.botrk.combo", "Use BOTRK (COMBO Mode)", true, true); Menu.AddCheckBox("activator.botrk.ks", "Use BOTRK (KS Mode)", false, true); Menu.AddCheckBox("activator.botrk.lifesave", "Use BOTRK (LifeSave)", false, true); Menu.AddSlider("activator.botrk.hp", "Use BOTRK (LifeSave) if HP are under {0}", 20, 0, 100, true); Menu.AddSeparator(); } if (Cutlass.IsOwned()) { Menu.AddCheckBox("activator.bilgewater", "Use BC"); Menu.AddSeparator(); Menu.AddGroupLabel("Bilgewater Cutlass Manager:", "activator.label.utilitymenu.bilgewater", true); Menu.AddCheckBox("activator.bilgewater.combo", "Use BC (COMBO Mode)", true, true); Menu.AddCheckBox("activator.bilgewater.ks", "Use BC (KS Mode)", false, true); Menu.AddSeparator(); } if (Youmuus.IsOwned()) { Menu.AddCheckBox("activator.youmus", "Use Youmus"); Menu.AddSeparator(); Menu.AddGroupLabel("Youmus Manager:", "activator.label.utilitymenu.youmus", true); Menu.AddCheckBox("activator.youmusspellonly", "Use Youmus only on spell cast", false, true); Menu.AddSeparator(); } if (Hunter.IsOwned() || Refillable.IsOwned() || Potion.IsOwned() || Biscuit.IsOwned() || Corrupting.IsOwned()) { Menu.AddCheckBox("activator.potions", "Use Potions"); Menu.AddSeparator(); Menu.AddGroupLabel("Potions Manager:", "activator.label.utilitymenu.potions", true); Menu.AddSlider("activator.potions.hp", "Use POTIONS if HP are under {0}", 20, 0, 100, true); Menu.AddSlider("activator.potions.mana", "Use POTIONS if mana is under {0}", 20, 0, 100, true); Menu.AddSeparator(); } if (Mercurial.IsOwned() || Qss.IsOwned()) { Menu.AddCheckBox("activator.qss", "Use QSS - Mercurial"); Menu.AddCheckBox("activator.qss.ulti", "Prevent ultimates"); Menu.AddCheckBox("activator.qss.bonus", "Use on bonus"); Menu.AddSeparator(); Menu.AddGroupLabel("Anti Cloud-Control Manager:", "activator.label.utilitymenu.qss", true); Menu.AddCheckBox("activator.qss.cc.1", "Use it on Airborne", true, true); Menu.AddCheckBox("activator.qss.cc.2", "Use it on Blind", true, true); Menu.AddCheckBox("activator.qss.cc.3", "Use it on Disarm", true, true); Menu.AddCheckBox("activator.qss.cc.4", "Use it on Forced Action", true, true); Menu.AddCheckBox("activator.qss.cc.5", "Use it on Root", true, true); Menu.AddCheckBox("activator.qss.cc.6", "Use it on Silence", true, true); Menu.AddCheckBox("activator.qss.cc.7", "Use it on Slow", true, true); Menu.AddCheckBox("activator.qss.cc.8", "Use it on Stasis", true, true); Menu.AddCheckBox("activator.qss.cc.9", "Use it on Stun", true, true); Menu.AddCheckBox("activator.qss.cc.10", "Use it on Suppression", true, true); Menu.AddSeparator(); if (Value.Use("activator.qss.ulti")) { Menu.AddGroupLabel("Anti Ultimate Manager:", "activator.label.utilitymenu.qss.antiulti", true); if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fiora")) { Menu.AddCheckBox("activator.qss.ulti.1", "Prevent Fiora Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Fizz")) { Menu.AddCheckBox("activator.qss.ulti.2", "Prevent Fizz Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Lissandra")) { Menu.AddCheckBox("activator.qss.ulti.4", "Prevent Lissandra Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Mordekaiser")) { Menu.AddCheckBox("activator.qss.ulti.5", "Prevent Mordekaiser Ultimate", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Thresh")) { Menu.AddCheckBox("activator.qss.ulti.7", "Prevent Thresh Q", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vladimir")) { Menu.AddCheckBox("activator.qss.ulti.8", "Prevent Vladimir", true, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Zed")) { Menu.AddCheckBox("activator.qss.ulti.9", "Prevent Zed Ultimate", true, true); } } Menu.AddSeparator(); if (Value.Use("activator.qss.bonus")) { Menu.AddGroupLabel("Anti Cloud-Control Bonus Manager:", "activator.label.utilitymenu.qss.bonus", true); if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Vayne")) { Menu.AddCheckBox("activator.qss.bonus.1", "Prevent Vayne Stacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Darius")) { Menu.AddCheckBox("activator.qss.bonus.2", "Prevent Darius BloodStacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Kalista")) { Menu.AddCheckBox("activator.qss.bonus.3", "Prevent Kalista EStacks", false, true); } if (EntityManager.Heroes.Enemies.Any(a => a.ChampionName == "Tristana")) { Menu.AddCheckBox("activator.qss.bonus.4", "Prevent Tristana EStacks", false, true); } } Menu.AddSlider("activator.qss.prevent.enemies", "Prevent to use QSS if there are less then {0} enemies", 3, 0, 5, true); Menu.AddSlider("activator.qss.hp", "Use QSS if HP are under {0}", 20, 0, 100, true); Menu.AddSeparator(); } Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Shop.OnBuyItem += Shop_OnBuyItem; Obj_AI_Base.OnBuffGain += BuffGain; }
private static void Offensive() { if (Botrk.IsReady() && OffensivesMenu["botrk"].Cast <CheckBox>().CurrentValue) { var t = TargetSelector.GetTarget(Botrk.Range, DamageType.Physical); if (t.IsValidTarget()) { if (OffensivesMenu["botrkks"].Cast <CheckBox>().CurrentValue&& Player.CalculateDamageOnUnit(t, DamageType.Physical, t.MaxHealth * (float)0.1) > t.Health) { Botrk.Cast(t); } if (OffensivesMenu["botrkls"].Cast <CheckBox>().CurrentValue&& Player.Health < Player.MaxHealth * 0.5) { Botrk.Cast(t); } if (OffensivesMenu["botrkc"].Cast <CheckBox>().CurrentValue&& Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo) { Botrk.Cast(t); } } } if (Hextech.IsReady() && OffensivesMenu["hex"].Cast <CheckBox>().CurrentValue) { var t = TargetSelector.GetTarget(Hextech.Range, DamageType.Magical); if (t.IsValidTarget()) { if (OffensivesMenu["hexks"].Cast <CheckBox>().CurrentValue&& Player.CalculateDamageOnUnit(t, DamageType.Magical, 150 + Player.FlatMagicDamageMod * (float)0.4) > t.Health) { Hextech.Cast(t); } if (OffensivesMenu["hexc"].Cast <CheckBox>().CurrentValue&& Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo) { Hextech.Cast(t); } } } if (Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo && FrostQueen.IsReady() && OffensivesMenu["fq"].Cast <CheckBox>().CurrentValue) { var t = TargetSelector.GetTarget(FrostQueen.Range, DamageType.Magical); if (t.IsValidTarget() && t.Distance(Player) < 1500) { FrostQueen.Cast(); } } if (Cutlass.IsReady() && OffensivesMenu["cut"].Cast <CheckBox>().CurrentValue) { var t = TargetSelector.GetTarget(Cutlass.Range, DamageType.Magical); if (t.IsValidTarget()) { if (OffensivesMenu["cutks"].Cast <CheckBox>().CurrentValue&& Player.CalculateDamageOnUnit(t, DamageType.Magical, 100) > t.Health) { Cutlass.Cast(t); } if (OffensivesMenu["cutc"].Cast <CheckBox>().CurrentValue&& Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo) { Cutlass.Cast(t); } } } if (Youmuus.IsReady() && OffensivesMenu["gb"].Cast <CheckBox>().CurrentValue&& Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo) { var t = Orbwalker.LastTarget; if (t.IsValidTarget(Player.AttackRange) && t is AIHeroClient) { Youmuus.Cast(); } } if ((OffensivesMenu["tmat"].Cast <CheckBox>().CurrentValue || OffensivesMenu["rh"].Cast <CheckBox>().CurrentValue) && (Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo || Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Harass)) { if (Hydra.IsReady() && Player.CountEnemiesInRange(Hydra.Range) > 0) { Hydra.Cast(); } else if (Tiamat.IsReady() && Player.CountEnemiesInRange(Tiamat.Range) > 0) { Tiamat.Cast(); } } }