Пример #1
0
        public static AIHeroClient GetBestWTarget()
        {
            var enemy = HeroManager.Enemies.Where(h => h.LSIsValidTarget(SpellManager.W.Range)).MaxOrDefault(o => Lulu.getSliderItem(Lulu.wMenu, o.NetworkId + "WPriority"));

            return(enemy == null || Lulu.getSliderItem(Lulu.wMenu, enemy.NetworkId + "WPriority") == 0 ? null : enemy);
        }
Пример #2
0
        public static AIHeroClient GetBestWETarget()
        {
            var ally = HeroManager.Allies.Where(h => h.LSIsValidTarget(SpellManager.W.Range, false)).OrderByDescending(h => Lulu.getSliderItem(Lulu.superMMenu, h.NetworkId + "WEPriority")).FirstOrDefault();

            return(ally == null || Lulu.getSliderItem(Lulu.superMMenu, ally.NetworkId + "WEPriority") == 0 ? null : ally);
        }