예제 #1
0
 private static string SmiteTargetable()
 {
     if (SmiteBlue.Any(x => Items.HasItem(x)))
     {
         return("s5_summonersmiteplayerganker");
     }
     return(SmiteRed.Any(x => Items.HasItem(x)) ? "s5_summonersmiteduel" : "summonersmite");
 }
예제 #2
0
            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);
                }
            }