Workshop › Tower Defense › Step 23 of 42
If a bullet's target is already gone (killed by another bullet, or through at the end of the road), the bullet simply fizzles out.
```js
// Bullets fly towards their target; if it is gone, they fizzle out.
for (const b of bullets) {
if (b.target.hp <= 0) {
b.done = true
continue
}
```continue skips the rest for it.hp = 0, so pointAt is never asked.In update, write the comment above the bullets loop and the if block as its first lines.
Skills: Game states
← Homing bullets Gold for every kill →