fix bandage range, change some ondeath/onbeforedeath region calls, fix spell delayed damage
This commit is contained in:
parent
85fbf8ab81
commit
603f1bf8fe
6 changed files with 75 additions and 38 deletions
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue