It will not really work, if only Bosses got the speed variable, then you cannot capture events of enemy health, you have to give boss a health variable and then capture the events on boss.health
Let me give it on pseudocode
enemy.health = 0 -> boss.speed=100
This will make all bosses speed to 100, not the one with health = 0