Bird fix, null map mobiles fixed

This commit is contained in:
asayre 2006-10-26 04:28:35 +00:00
parent b2ab540a59
commit cdda8cd854
8 changed files with 23 additions and 7 deletions

View file

@ -53,7 +53,7 @@ namespace Server.Mobiles
public override void OnDamagedBySpell( Mobile caster )
{
if ( caster != this && 0.25 > Utility.RandomDouble() )
if ( this.Map != null && caster != this && 0.25 > Utility.RandomDouble() )
{
BaseCreature spawn = new PlagueSpawn( this );
@ -71,7 +71,7 @@ namespace Server.Mobiles
public override void OnGotMeleeAttack( Mobile attacker )
{
if ( attacker != this && 0.25 > Utility.RandomDouble() )
if ( this.Map != null && attacker != this && 0.25 > Utility.RandomDouble() )
{
BaseCreature spawn = new PlagueSpawn( this );