[0.1.20] Sparktail Officer / Ravish bug?

According to Bestiary, the damage that’s returned to the enemy procs AFTER the creature takes damage.

However, that’s not being the case here https://i.imgur.com/K2Ay8Fe.png The Sparktail returned damage BEFORE taking it itself.

Either the wording of the Ravish effect is wrong and needs to be made clear or it’s a bug and is not working as intended. I hope it’s a bug because it makes this creature really annoying to deal with and creates unwinnable scenarios since it’s all damage that triggers it.