예제 #1
0
        public override bool OnBeforeDeath()
        {
            if (Region.IsPartOf <Server.Regions.CorgulRegion>())
            {
                CorgulTheSoulBinder.CheckDropSOT(this);
            }

            return(base.OnBeforeDeath());
        }
예제 #2
0
        public void SpawnBoss(Mobile from)
        {
            //Spawn boss
            CorgulTheSoulBinder boss = new CorgulTheSoulBinder(this);

            boss.MoveToWorld(m_SpawnLoc, this.Map);
            boss.SpawnHelpers();
            m_Boss = boss;

            //create dummy spawn point and bounds for warp region
            m_WarpPoint = GetRandomWarpPoint();
            Rectangle2D bounds = GetRectangle(m_WarpPoint);

            //create region based on dummy spot and bounds
            m_WarpRegion = new CorgulWarpRegion(this, bounds);
            m_WarpRegion.Register();
            m_Activated = true;
        }