public override bool OnBeforeDeath() { if (Region.IsPartOf <Server.Regions.CorgulRegion>()) { CorgulTheSoulBinder.CheckDropSOT(this); } return(base.OnBeforeDeath()); }
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; }