Hello friend, your code is working just fine. The enemy takes only 10 damage and the other enemies keep their full health. The problem is that all the EnemyHpBg change sizes. To avoid that you need to specify which HP bar you want to change, otherwise it will be applied to all of them.
Here, this shall work: