MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
295 stars 282 forks source link

Ammo bins not automatically switching. Alpha strikes only partially fire #5227

Closed EnbyMyu closed 6 months ago

EnbyMyu commented 6 months ago

Environment

MekHQ/MegaMek 0.49.18 Java Vendor: Eclipse Adoptium Java Version: 21 Win11 23H2

Description

A Bane 3 that had previously only fired four LRM 15s for its first shot of combat. The ammo bin the missiles were drawing from had 4 shots remaining. The next turn, I fired an alpha strike of all eight launchers, and only four launchers fired.

This can be reproduced with a Bane 3 by firing four shots in one turn, then more than four shots on another turn. Only the remaining ammunition in the first bin will be used, the rest will not fire.

Bane 3-1

Note the number of launchers fired in the lower right.

image

Final results of salvo. Only four launches before moving to another unit.

Bane 3-2

Files

Bane.sav.gz

Team name is "The Wrecking Belles"

PhoenixHeart512 commented 6 months ago

This issue is resolved in the latest nightly, by https://github.com/MegaMek/megamek/pull/5190 @Sleet01 , just tested and confirmed that it no longer occurs on yesterday's build.

Sleet01 commented 6 months ago

@PhoenixHeart512 Good lookin' out! I'll close this as fixed.