The commonly adopted strategy is to hit an enemy, avoid them until their invincibility wears off, then hit them again. I could shorten the time of invincibility, but I worry that it would make the game too simple and easy.
While that is a reasonable strategy, I've had a few cases where the enemy didn't register a hit OUTSIDE the invincibility-period.