You can specify under what conditions the discount will be valid.
To do this, in the price component, click the Constraints tab.
Set all the values of the fields and tariffs under which you want to give a discount.
In our case, we will set the checkbox 'Self-delivery'.
To cancel the setting of the value, click the (-) button to the right of the field value.
Look at the example in action: