private static void Rtf(AIHeroClient[] enemys, int enemyCount) { var TStarget = TargetSelector.GetTarget(R.Range, TargetSelector.DamageType.Magical); List <int> worth = new List <int>(); int i; int enemyFacing; int enemyTouched; int TSValue; foreach (var enemy in enemys) { TSValue = 0; var Rpredict = R.GetPrediction(enemy); enemyFacing = ObjectManager.Heroes.Enemies.Count(t => t.IsValidTarget(R.Range) && t.IsFacing(Cassio.Player) && Rpredict.CollisionObjects.Contains(t) && t.Health > E.GetDamage(t) + Cassio.Player.GetAutoAttackDamage(t)); enemyTouched = ObjectManager.Heroes.Enemies.Count(t => t.IsValidTarget(R.Range) && Rpredict.CollisionObjects.Contains(t) && t.Health > E.GetDamage(t) + Cassio.Player.GetAutoAttackDamage(t)); if (TStarget.Health > E.GetDamage(TStarget) + Cassio.Player.GetAutoAttackDamage(TStarget)) { if (TStarget.IsFacing(Cassio.Player)) { TSValue = 2; } if (Rpredict.CollisionObjects.Contains <Obj_AI_Base>(TStarget)) { TSValue += 1; } } worth.Add(4 * enemyFacing + enemyTouched + TSValue); } i = 0; foreach (int Value in worth) { if (Value == worth.Max()) { if (Value >= (100.0 / (float)(MyMenu.GetValue("Combo.Rsensi") * enemyCount))) { R.Cast(R.GetPrediction(enemys[i]).CastPosition); } } i++; } }
public static void LaneClear() { if (LastHit()) { return; } if (MyMenu.IsChecked("LaneClear.Q")) { MySpells.Qlogic(MyMenu.GetValue("LaneClear.QMana")); } if (MyMenu.IsChecked("LaneClear.E") && MyMenu.GetValue("LaneClear.EMana") < Cassio.Player.ManaPercent) { MySpells.Elogic(false, MyMenu.IsChecked("LaneClear.Ep"), true); } }
public static void Harass() { if (LastHit()) { return; } if (MyMenu.IsChecked("Harass.Q")) { MySpells.Qlogic(MyMenu.GetValue("Harass.QMana"), true); } if (MyMenu.IsChecked("Harass.E")) { MySpells.Elogic(true, true); } }