revealing hidden staff is a bad thing

This commit is contained in:
asayre 2007-01-26 05:35:13 +00:00
parent 0462a78e40
commit 318ad5f08c

View file

@ -282,6 +282,9 @@ namespace Server.Items
if ( Deleted || m_TriggerType == EffectTriggerType.None )
return;
if( trigger is Mobile && ((Mobile)trigger).Hidden && ((Mobile)trigger).AccessLevel > AccessLevel.Player )
return;
if ( m_SoundID > 0 )
Timer.DelayCall( m_SoundDelay, new TimerStateCallback( PlaySound ), trigger );