Skip to content

Commit

Permalink
added atmosphere check to willCrash
Browse files Browse the repository at this point in the history
  • Loading branch information
DM0000 committed Nov 1, 2024
1 parent a205982 commit 9475fc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions megamek/src/megamek/client/bot/princess/AeroPathUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ public static boolean willCrash(MovePath movePath) {
return movePath.getEntity().isAero() &&
(movePath.getFinalAltitude() < 1) &&
!movePath.contains(MoveStepType.VLAND) &&
movePath.isOnAtmosphericGroundMap() &&
!movePath.contains(MoveStepType.LAND);
}

Expand Down

0 comments on commit 9475fc9

Please sign in to comment.