fix bandage range, change some ondeath/onbeforedeath region calls, fix spell delayed damage

This commit is contained in:
mark 2007-01-14 02:06:27 +00:00
parent 85fbf8ab81
commit 603f1bf8fe
6 changed files with 75 additions and 38 deletions

View file

@ -3741,7 +3741,7 @@ namespace Server
return;
else if( m_Deleted )
return;
else if( !Region.OnDeath( this ) )
else if( !Region.OnBeforeDeath( this ) )
return;
else if( !OnBeforeDeath() )
return;
@ -3900,6 +3900,7 @@ namespace Server
eable.Free();
}
Region.OnDeath( this );
OnDeath( c );
}

View file

@ -742,14 +742,20 @@ namespace Server
return true;
}
public virtual bool OnDeath( Mobile m )
public virtual bool OnBeforeDeath( Mobile m )
{
if ( m_Parent != null )
return m_Parent.OnDeath( m );
return m_Parent.OnBeforeDeath( m );
return true;
}
public virtual void OnDeath( Mobile m )
{
if ( m_Parent != null )
m_Parent.OnDeath( m );
}
public virtual bool OnDamage( Mobile m, ref int Damage )
{
if ( m_Parent != null )