all enemies do not move while they attack and they have somthing around a 0.5 seconds delay before they attack. During this time you can just walk around it so you won't get hit.
If you have a dead enemy, you cannot attack. Forgot to mention that in the description