'Affiliate Assigned' plugin allows you to create discounts with a rule based on affiliates. This means that you can create a discount, which validates only when a customer has assigned an affiliate from the requirement. You can select any available affiliate of your store.