Enemies play by different rules than players, which is piss poor design. Enemy actions are calculated before animation, whereas player actions are calculated after animation.

This is why you can hit Holmgang or Hallowed Ground, die, and have the skills go on cooldown. It's pure nonsense.