This commit is contained in:
parent
879e2fc778
commit
f2b9f04620
29 changed files with 62 additions and 55 deletions
|
|
@ -68,6 +68,7 @@ namespace Server.Mobiles
|
|||
}
|
||||
|
||||
public override bool AutoDispel{ get{ return true; } }
|
||||
public override Poison PoisonImmune{ get{ return Poison.Lethal; } }
|
||||
|
||||
public override void OnGotMeleeAttack( Mobile attacker )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -51,14 +51,7 @@ namespace Server.Mobiles
|
|||
|
||||
public override void OnThink()
|
||||
{
|
||||
bool expired;
|
||||
|
||||
expired = ( DateTime.Now >= m_ExpireTime );
|
||||
|
||||
if ( !expired && m_Owner != null )
|
||||
expired = m_Owner.Deleted || Map != m_Owner.Map || !InRange( m_Owner, 16 );
|
||||
|
||||
if ( expired )
|
||||
if ( m_Owner != null && ( DateTime.Now >= m_ExpireTime || m_Owner.Deleted || Map != m_Owner.Map || !InRange( m_Owner, 16 ) ) )
|
||||
{
|
||||
PlaySound( GetIdleSound() );
|
||||
Delete();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue