How to make rule tiles detect other tiles that are not the rule tile?

I have a basic rule tile, but in some specific cases I want to add a special type of tile, that I can’t include in the rule tile. The problem is that the rule tile doesn’t detect it, so it looks very bad like this:
image