I'm thinking, I'm thinking.
Stay Underground x3
SUB: IF earthquake is used, THEN attack Fang with dig instead of staying underground and replace your remaining actions with Substitute 25 HP ~ Substitute 25 HP.
SUB2: IF you have already attacked with dig and fang uses Ice Fang, THEN use
dig and stay underground instead.
Hopefully you'll underdstand my subs but if you don't then I'll explain it to you depending on what Endquote does. Hopefully this is foolproof though.