Hmm..... wrong thing about Dragon Tail. It doesn't force a switch to a substitute, whether the Substitute is broken or not, according to Bulbapedia. Here, "Dragon Tail will fail to end wild Pokémon battles or switch out the opposing Trainer's Pokémon if the target has the Ability Suction Cups, is under the effects of Ingrain, or has Substitute set up."