I’ve not done it but I’m pretty sure you can do this with the condition option of the restriction card: