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

@ -115,6 +115,9 @@ namespace Server.Mobiles
public void BeginSavageDance()
{
if( this.Map == null )
return;
ArrayList list = new ArrayList();
foreach ( Mobile m in this.GetMobilesInRange( 8 ) )

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 );

View file

@ -81,6 +81,9 @@ namespace Server.Mobiles
private void DoCounter( Mobile attacker )
{
if( this.Map == null )
return;
if ( attacker is BaseCreature && ((BaseCreature)attacker).BardProvoked )
return;