Riolu is basically a "guess the move I'm gonna click, and if you guess wrong you'll be phased.", which is what makes it uncompetitive. Even dark types aren't really safe, as you can predict the switch, go for sub and then just click drain punch for decent chip. Here is the set with replays...