MegaMek version 0.41.11
Similar to my closed report [#4586], when an aero's strafing run passes a building with infantry, the message "Attack on infantry crosses building exterior wall" will appear and the fire button will be disable.
To replicate, load the savegame. During Typhoon TFN-2A #12's firing phase, select 'strafe', then select 2529, 2428, 2328, 2227 and 2127. The moment you select 2127, the message will appear and the fire button will be disabled.
I should be able to shoot at the building instead of the infantry inside the building, but was unable to select the building as the target.
Yea, looks like there's an issue with infantry in buildings. They can't be targeted per TW pg 172. But, the strafe hits the building automatically, which will potentially damage the building. The strafe attack shouldn't add the infantry into the attack.
Fixed in [2408af]. I made it so that infantry in buildings won't be targeted by strafes. Because this can lead to an instance were the Aero is strafing a hex with a building and a unit, but the target box is empty, I made it so strafes against building hexes will also display the target to-hit info for buildings as well.
Related
Commit: [2408af]