From 9475fc9e3e9956e737c27974c7462360dd4db13d Mon Sep 17 00:00:00 2001 From: DM0000 <98051919+DM0000@users.noreply.github.com> Date: Sat, 26 Oct 2024 10:24:05 -0700 Subject: [PATCH] added atmosphere check to willCrash --- megamek/src/megamek/client/bot/princess/AeroPathUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/megamek/src/megamek/client/bot/princess/AeroPathUtil.java b/megamek/src/megamek/client/bot/princess/AeroPathUtil.java index bb946965c85..a921ca419d9 100644 --- a/megamek/src/megamek/client/bot/princess/AeroPathUtil.java +++ b/megamek/src/megamek/client/bot/princess/AeroPathUtil.java @@ -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); }