How to check if the player took damage

or other damage type