예제 #1
0
 public static Obj_AI_Hero GetUltedTarget()
 {
     if (!FocusUlted)
     {
         return(null);
     }
     return(HeroManager.Enemies.FirstOrDefault(x => x != null && x.IsValid && FioraUltiPassiveObjects
                                               .Any(i => i != null && i.IsValid && i.Position.To2D().Distance(x.Position.To2D()) <= 50)));
 }
예제 #2
0
        public static List <PassiveObject> GetPassiveObjects()
        {
            List <PassiveObject> PassiveObjects = new List <PassiveObject>();

            foreach (var x in FioraPrePassiveObjects.Where(i => i != null && i.IsValid))
            {
                PassiveObjects.Add(new PassiveObject(x.Name, x, PassiveType.PrePassive, GetPassiveDirection(x)));
            }
            foreach (var x in FioraPassiveObjects.Where(i => i != null && i.IsValid))
            {
                PassiveObjects.Add(new PassiveObject(x.Name, x, PassiveType.NormalPassive, GetPassiveDirection(x)));
            }
            foreach (var x in FioraUltiPassiveObjects.Where(i => i != null && i.IsValid))
            {
                PassiveObjects.Add(new PassiveObject(x.Name, x, PassiveType.UltiPassive, GetPassiveDirection(x)));
            }
            return(PassiveObjects);
        }