Check if the creature is still alive before attacking