public static void OnAttack(AttackableUnit unit, AttackableUnit target) { var item = new EloBuddy.SDK.Item(ItemId.Youmuus_Ghostblade); if (unit.IsMe && (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.OrbwalkPassive || OrbwalkLastClickActive)) { if (item.IsReady()) { item.Cast(); } } }
public static void castHydra(AIHeroClient target) { if (player.Distance(target) < hydra.Range && !LeagueSharp.Common.Orbwalking.CanAttack()) { if (tiamat.IsReady() && tiamat.IsOwned()) { tiamat.Cast(); } if (hydra.IsReady() && hydra.IsOwned()) { hydra.Cast(); } } }
public static void UseItems(AIHeroClient target) { if (player.BaseSkinName != "Renekton") { castHydra(target); } if (Zhonya.IsOwned() && Zhonya.IsReady()) { if (player.HealthPercent < 30 && ARAMSimulator.balance < -60) { Zhonya.Cast(); } } if (locket.IsOwned() && locket.IsReady()) { if (player.HealthPercent < 80 && player.CountEnemiesInRange(550) > 0) { locket.Cast(); } } if (randuins.IsOwned() && randuins.IsReady()) { if (player.Distance(target) < randuins.Range && player.Distance(target) > player.AttackRange + 100) { randuins.Cast(); } } if (odins.IsReady() && odins.IsOwned()) { if (player.Distance(target) < odins.Range && (player.CountEnemiesInRange(odins.Range) > 1 || target.Health < Damage.GetItemDamage(player, target, Damage.DamageItems.OdingVeils))) { odins.Cast(); } } if (bilgewater.IsOwned() && bilgewater.IsReady()) { bilgewater.Cast(target); } if (botrk.IsOwned() && botrk.IsReady() && (player.Health < player.MaxHealth / 2 || Damage.GetItemDamage(player, target, Damage.DamageItems.Botrk) < target.Health)) { botrk.Cast(target); } if (hexgun.IsOwned() && hexgun.IsReady()) { hexgun.Cast(target); } if (Dfg.IsOwned() && Dfg.IsReady()) { Dfg.Cast(target); } if (Bft.IsOwned() && Bft.IsReady()) { Bft.Cast(target); } if (youmuu.IsOwned() && youmuu.IsReady() && player.Distance(target) < player.AttackRange + 50) { youmuu.Cast(); } }