Bird fix, null map mobiles fixed
This commit is contained in:
parent
b2ab540a59
commit
cdda8cd854
8 changed files with 23 additions and 7 deletions
|
|
@ -132,6 +132,9 @@ namespace Server.Mobiles
|
|||
|
||||
public void CheckQueen()
|
||||
{
|
||||
if( this.Map == null )
|
||||
return;
|
||||
|
||||
if ( !m_SpawnedQueen )
|
||||
{
|
||||
this.Say( 1042153 ); // Come forth my queen!
|
||||
|
|
|
|||
|
|
@ -222,6 +222,9 @@ namespace Server.Mobiles
|
|||
|
||||
public void AddUnholyBone( Mobile target, double chanceToThrow )
|
||||
{
|
||||
if( this.Map == null )
|
||||
return;
|
||||
|
||||
if ( chanceToThrow >= Utility.RandomDouble() )
|
||||
{
|
||||
Direction = GetDirectionTo( target );
|
||||
|
|
|
|||
|
|
@ -70,6 +70,9 @@ namespace Server.Mobiles
|
|||
|
||||
public void DrainLife()
|
||||
{
|
||||
if( this.Map == null )
|
||||
return;
|
||||
|
||||
ArrayList list = new ArrayList();
|
||||
|
||||
foreach ( Mobile m in this.GetMobilesInRange( 2 ) )
|
||||
|
|
|
|||
|
|
@ -88,6 +88,7 @@ namespace Server.Mobiles
|
|||
|
||||
ScaleResistances();
|
||||
DoCounter( attacker );
|
||||
|
||||
}
|
||||
|
||||
private void ScaleResistances()
|
||||
|
|
@ -103,7 +104,7 @@ namespace Server.Mobiles
|
|||
|
||||
private void DoCounter( Mobile attacker )
|
||||
{
|
||||
if ( attacker is BaseCreature && ((BaseCreature)attacker).BardProvoked )
|
||||
if ( this.Map == null && attacker is BaseCreature && ((BaseCreature)attacker).BardProvoked )
|
||||
return;
|
||||
|
||||
if ( 0.2 > Utility.RandomDouble() )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue