private static string SmiteTargetable() { if (SmiteBlue.Any(x => Items.HasItem(x))) { return("s5_summonersmiteplayerganker"); } return(SmiteRed.Any(x => Items.HasItem(x)) ? "s5_summonersmiteduel" : "summonersmite"); }
public static void Smite(AIHeroClient oHero) { var nSmiteRange = 550f; var itemCheck = SmiteBlue.Any(i => LeagueSharp.Common.Items.HasItem(i)) || SmiteRed.Any(i => LeagueSharp.Common.Items.HasItem(i)); if (itemCheck && ObjectManager.Player.Spellbook.CanUseSpell(SmiteSlot) == SpellState.Ready && oHero.IsValidTarget(nSmiteRange)) { ObjectManager.Player.Spellbook.CastSpell(SmiteSlot, oHero); } }