Revert "Revert "Changed the hit logic by adding a damage state. Damage state flashes""

This reverts commit 574e9df93cb7759705e82600ded1ee0f0032f7f3.