Fixes more casting and other formatting issues.

This commit is contained in:
Kamron Batman 2018-08-19 10:14:40 +08:00
parent 03dd5f1926
commit 61937d9c97
67 changed files with 325 additions and 570 deletions

View file

@ -65,9 +65,7 @@ namespace Server
public static void Path_OnTarget( Mobile from, object obj )
{
IPoint3D p = obj as IPoint3D;
if ( p == null )
if ( !(obj is IPoint3D p) )
return;
Spells.SpellHelper.GetSurfaceTop( ref p );
@ -162,4 +160,4 @@ namespace Server
}
}
}
}
}