Files
OpenFrontIO/tests
Evan bcdc2126c6 bugfix: SAM was only reloading when not in cooldown (#3817)
## Description:

reloadMissile() was inside the isInCooldown() block. For level-2+ SAMs,
isInCooldown() returns queue.length === level, so after firing one of
two missiles (queue.length = 1 < level = 2) the SAM is not in cooldown —
meaning expired timers were never cleaned up. Stale queue entries caused
subsequent shots to be treated as still-cooling even after the cooldown
elapsed.

SAM execution now mirrors the missile silo execution

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced

## Please put your Discord username so you can be contacted if a bug or
regression is found:

evan
2026-05-02 09:05:10 -06:00
..
2026-04-30 21:27:35 -06:00
2025-12-20 13:35:30 -08:00
2026-04-12 17:18:52 -07:00
2026-04-08 20:56:02 -07:00
2026-04-30 15:49:24 -06:00
2026-04-26 21:30:11 +00:00
2026-03-17 15:55:47 -07:00
2025-12-20 13:35:30 -08:00
2025-11-19 12:32:01 -08:00
2026-03-17 15:55:47 -07:00
2026-03-17 15:55:47 -07:00
2026-04-16 19:40:05 -07:00