Hi! Thanks for the feedback. The jump direction is relative to the player and it's current target.
Think of the motion as pushing away from the enemy to do a backflip, pushing towards the enemy to do a jump attack, and pushing adjacent to the enemy to do a side jump.
The way this works has been lifted straight from the 3D Zelda games, but if you have any suggestions on how to implement differently, please let me know!