Ejemplo n.º 1
0
        public Character FindAttackTarget(Character c)
        {
            var charSquad = c.Squad.Name.ToLower();
            var index = GetSquadIndex(c.Squad);

            if (!attackTargets.ContainsKey(index))
                index = AllSquads;

            return attackTargets[index].Where(t => !c.ShouldRunFromTarget(t) && c.CanTarget(t)).FirstOrDefault();
        }