Exemplo n.º 1
0
 public static IEnumerable <AIHeroClient> GetKillStealTargets(this Spell.SpellBase spell)
 {
     return(EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).Where(o => spell.WillKill(o) && o.IsKillable()));
 }
Exemplo n.º 2
0
 public static AIHeroClient GetKillStealTarget(this Spell.SpellBase spell)
 {
     return(EntityManager.Heroes.Enemies.OrderByDescending(TargetSelector.GetPriority).FirstOrDefault(o => o.IsKillable(spell.Range) && spell.WillKill(o)));
 }