Skip to content
6 changes: 6 additions & 0 deletions megamek/src/megamek/server/totalWarfare/TWGameManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -10410,6 +10410,12 @@ public boolean accept(Entity entity) {
entity.setAltitude(entity.getAltitude() - aero.getAltLoss());
aero.setAltLossThisRound(aero.getAltLoss());
aero.resetAltLoss();
// Altitude knocked off by weapon fire can reach the ground, and a unit that arrives there has
// crashed. Without this the fighter sits at altitude zero still counted as airborne, unable to
// spend the velocity it is holding and unable to do anything else either (issue #8931).
if (checkCrash(entity)) {
addReport(processCrash(entity, aero.getCurrentVelocity(), entity.getPosition()));
}
entityUpdate(entity.getId());
}
}
Expand Down
Loading