Server.Items.BaseTool.CheckTool C# (CSharp) Method

CheckTool() public static method

public static CheckTool ( Item tool, Server.Mobile m ) : bool
tool Item
m Server.Mobile
return bool
		public static bool CheckTool( Item tool, Mobile m )
		{
			Item check = m.FindItemOnLayer( Layer.OneHanded );

			if ( check is BaseTool && check != tool )
				return false;

			check = m.FindItemOnLayer( Layer.TwoHanded );

			if ( check is BaseTool && check != tool )
				return false;

			return true;
		}