Bird fix, null map mobiles fixed
This commit is contained in:
parent
b2ab540a59
commit
cdda8cd854
8 changed files with 23 additions and 7 deletions
|
|
@ -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 ) )
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue