More casting fixes
This commit is contained in:
parent
f211efc3bd
commit
20a80ea2f3
40 changed files with 125 additions and 211 deletions
|
|
@ -20,10 +20,8 @@ namespace Server.Mobiles
|
|||
|
||||
foreach ( Mobile m in target.GetMobilesInRange( 15 ) )
|
||||
{
|
||||
if ( m is BaseGuard )
|
||||
if ( m is BaseGuard g )
|
||||
{
|
||||
BaseGuard g = (BaseGuard)m;
|
||||
|
||||
if ( g.Focus == null ) // idling
|
||||
{
|
||||
g.Focus = target;
|
||||
|
|
@ -83,4 +81,4 @@ namespace Server.Mobiles
|
|||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue