Fixes more casting and other formatting issues.
This commit is contained in:
parent
03dd5f1926
commit
61937d9c97
67 changed files with 325 additions and 570 deletions
|
|
@ -43,9 +43,7 @@ namespace Server.Engines.Help
|
|||
|
||||
protected override void OnTarget( Mobile from, object targeted )
|
||||
{
|
||||
PlayerMobile pm = targeted as PlayerMobile;
|
||||
|
||||
if ( pm == null )
|
||||
if ( !(targeted is PlayerMobile pm) )
|
||||
{
|
||||
from.SendMessage( "Speech logs aren't supported on that target." );
|
||||
}
|
||||
|
|
@ -145,4 +143,4 @@ namespace Server.Engines.Help
|
|||
m_Created = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue