Ejemplo n.º 1
0
        public void SpawnOrcLord(Mobile target)
        {
            Map map = target.Map;

            if (map == null)
            {
                return;
            }

            IPooledEnumerable <OrcishLord> eable = GetMobilesInRange <OrcishLord>(10);

            if (eable.Count() < 10)
            {
                BaseCreature orc = new SpawnedOrcishLord {
                    Team = Team
                };

                orc.MoveToWorld(map.GetRandomNearbyLocation(target.Location), map);
                orc.Combatant = target;
            }

            eable.Free();
        }