From 38e023b21b7761578a98eb4e33f7c92507aadf59 Mon Sep 17 00:00:00 2001 From: Scoppio Date: Mon, 20 Jan 2025 11:58:05 -0300 Subject: [PATCH 1/2] fix: the bot should not consider hidden units in the list of available enemies --- megamek/src/megamek/client/bot/BotClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/megamek/src/megamek/client/bot/BotClient.java b/megamek/src/megamek/client/bot/BotClient.java index 2159f5f633d..7cf7a3e639d 100644 --- a/megamek/src/megamek/client/bot/BotClient.java +++ b/megamek/src/megamek/client/bot/BotClient.java @@ -363,9 +363,9 @@ public List getEnemyEntities() { currentTurnEnemyEntities = new ArrayList<>(); for (Entity entity : game.getEntitiesVector()) { if (entity.getOwner().isEnemyOf(getLocalPlayer()) - && (entity.getPosition() != null) && !entity.isOffBoard() - && (entity.getCrew() != null) && !entity.getCrew().isDead()) { - + && (entity.getPosition() != null) && !entity.isOffBoard() + && (entity.getCrew() != null) && !entity.getCrew().isDead() + && !entity.isHidden()) { currentTurnEnemyEntities.add(entity); } } From 9724539146521776548a3d7b1a4a753dd061e5c2 Mon Sep 17 00:00:00 2001 From: Richard J Hancock Date: Mon, 20 Jan 2025 09:13:04 -0600 Subject: [PATCH 2/2] Update history.txt --- megamek/docs/history.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megamek/docs/history.txt b/megamek/docs/history.txt index 53b5d3405a6..6cafe1d9620 100644 --- a/megamek/docs/history.txt +++ b/megamek/docs/history.txt @@ -31,7 +31,7 @@ MEGAMEK VERSION HISTORY: + PR #6414: Warnings on Campaign Load - MegaMek Portion + Fix #6412: Fix TacOps "Standing Still" modifier description + Fix 6373: Fixed "unit that starts and ends a Movement Phase in liquid magma takes an additional damage" so it doesn't apply to units above the magma - ++ PR #6427 & #6428: Fix for Princess not ignoring Hidden and Ignored units. - Scoppio 0.50.02 (2024-12-30 2130 UTC) + PR #6183: New GM Commands, princess commands on map menu, graphics for some explosions