Help with Mario-style jump mechanics

As per [TheKehlim][1]'s advice, I tried adding a brief period of invulnerability for the player when jumping on the enemy.

While it has reduced the frequency of the player taking damage from the enemy quite a bit, it hasn’t completely eliminated it.