Um...
Erm...
Yay?
Shadow Punch ~ Shadow Sneak ~ Shadow Punch
IF successful P/E, THEN Chill that action and PUSH BACK.
IF damaging Ghost-type move, AND you have 16 or more HP, AND you do not have a Substitute up, THEN Substitute (15 HP) that action, PUSHING BACK.
IF damaging Ghost-type move, AND you have 15 or less HP, AND you did not use Protect last action, THEN Protect that action, PUSHING BACK.
Erm...
Yay?
Shadow Punch ~ Shadow Sneak ~ Shadow Punch
IF successful P/E, THEN Chill that action and PUSH BACK.
IF damaging Ghost-type move, AND you have 16 or more HP, AND you do not have a Substitute up, THEN Substitute (15 HP) that action, PUSHING BACK.
IF damaging Ghost-type move, AND you have 15 or less HP, AND you did not use Protect last action, THEN Protect that action, PUSHING BACK.